net.sf.filePiper.processors
Class CopyProcessor

java.lang.Object
  extended by net.sf.filePiper.model.OneToOneByteFileProcessor
      extended by net.sf.filePiper.processors.CopyProcessor
All Implemented Interfaces:
FileProcessor

public class CopyProcessor
extends OneToOneByteFileProcessor

Processor that simply copy the input stream to the ouput stream without content modification.

Author:
berol

Field Summary
 
Fields inherited from interface net.sf.filePiper.model.FileProcessor
MANY, NONE, ONE
 
Constructor Summary
CopyProcessor()
           
 
Method Summary
 String getProcessorDescription()
           
 String getProcessorName()
           
 String getProposedNameSuffix()
           
 void process(InputStream is, OutputStream os, FileProcessorEnvironment env)
           
 
Methods inherited from class net.sf.filePiper.model.OneToOneByteFileProcessor
bytesProcessed, endBatch, getCurrentInputFileInfo, getEditor, getOutputCardinality, getProposedExtension, getSettings, getStatusMessage, init, inputFileStarted, linesProcessed, process, setCurrentInputFileInfo, setProposedFilePath, startBatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyProcessor

public CopyProcessor()
Method Detail

getProcessorName

public String getProcessorName()
Specified by:
getProcessorName in interface FileProcessor
Specified by:
getProcessorName in class OneToOneByteFileProcessor
Returns:
A displayable name for this processor.

getProposedNameSuffix

public String getProposedNameSuffix()
Specified by:
getProposedNameSuffix in class OneToOneByteFileProcessor

getProcessorDescription

public String getProcessorDescription()
Overrides:
getProcessorDescription in class OneToOneByteFileProcessor

process

public void process(InputStream is,
                    OutputStream os,
                    FileProcessorEnvironment env)
             throws IOException
Specified by:
process in class OneToOneByteFileProcessor
Throws:
IOException


Copyright © 2011. All Rights Reserved.