net.sf.filePiper.model
Class PipelineEnd

java.lang.Object
  extended by net.sf.filePiper.model.PipelineEnd
All Implemented Interfaces:
PipeComponent

public class PipelineEnd
extends Object
implements PipeComponent

Last component of the pipeline.
This components creates output streams to final files (or to the console).

Author:
BEROL

Constructor Summary
PipelineEnd(Pipeline thePipeline, net.sf.sfac.file.FilePathUtils toDir, PipelineEnvironment reporting)
           
 
Method Summary
 OutputStream createOutputStream(InputFileInfo info)
           
 void finished()
          Notififaction that the preceding processes (in the processing pipe) have finished the whole batch.
 File getOutputFile(File input, InputFileInfo info)
           
 void processInputStream(InputStream input, InputFileInfo info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PipelineEnd

public PipelineEnd(Pipeline thePipeline,
                   net.sf.sfac.file.FilePathUtils toDir,
                   PipelineEnvironment reporting)
Method Detail

getOutputFile

public File getOutputFile(File input,
                          InputFileInfo info)
                   throws IOException
Throws:
IOException

processInputStream

public void processInputStream(InputStream input,
                               InputFileInfo info)
Specified by:
processInputStream in interface PipeComponent

createOutputStream

public OutputStream createOutputStream(InputFileInfo info)
                                throws IOException
Specified by:
createOutputStream in interface PipeComponent
Throws:
IOException

finished

public void finished()
              throws IOException
Description copied from interface: PipeComponent
Notififaction that the preceding processes (in the processing pipe) have finished the whole batch.

Specified by:
finished in interface PipeComponent
Throws:
IOException


Copyright © 2010. All Rights Reserved.