GNDMS 0.6.0
RESTful verison of GNDMS
Protected Member Functions | Package Functions

de.zib.gndms.logic.action.ProcessBuilderAction.InputCollector Class Reference

An InputCollector collects the incoming stream from an process and sends it to an receiver. More...

Inherits de::zib::gndms::stuff::threading::Collector.

List of all members.

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)

Detailed Description

An InputCollector collects the incoming stream from an process and sends it to an receiver.


Member Function Documentation

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 ((}).

Parameters:
processthe process the incoming stream comes from.
Exceptions:
IOException
                                                                                 {
           OutputStream outStream = process.getOutputStream();
           BufferedOutputStream bufOutStream = new BufferedOutputStream(outStream);
           try {
               writeProcessStdIn(bufOutStream);
           }
           finally {
               bufOutStream.close();
           }

       }

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables