net.sf.filePiper.model
Class PipelineEnd
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PipelineEnd
public PipelineEnd(Pipeline thePipeline,
net.sf.sfac.file.FilePathUtils toDir,
PipelineEnvironment reporting)
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.