GNDMS 0.6.0
RESTful verison of GNDMS
|
An InputCollector collects the incoming stream from an process and sends it to an receiver. More...
Inherits de::zib::gndms::stuff::threading::Collector.
Protected Member Functions | |
void | collect (final @NotNull Process process) throws IOException |
Collects incoming stream of the process and sends it to the corresponding receiver ((}). | |
Package Functions | |
InputCollector (final FillOnce< Throwable > causeParam, final FillOnce< Process > procParam, final FillOnce< Thread > mainThreadParam) |
An InputCollector collects the incoming stream from an process and sends it to an receiver.
void de.zib.gndms.logic.action.ProcessBuilderAction.InputCollector.collect | ( | final @NotNull Process | process | ) | throws IOException [protected] |
Collects incoming stream of the process and sends it to the corresponding receiver ((}).
process | the process the incoming stream comes from. |
IOException |
{ OutputStream outStream = process.getOutputStream(); BufferedOutputStream bufOutStream = new BufferedOutputStream(outStream); try { writeProcessStdIn(bufOutStream); } finally { bufOutStream.close(); } }