net.sf.filePiper.processors
Class ReplaceProcessor
java.lang.Object
net.sf.filePiper.model.OneToOneByteFileProcessor
net.sf.filePiper.model.OneToOneTextFileProcessor
net.sf.filePiper.processors.ReplaceProcessor
- All Implemented Interfaces:
- FileProcessor
public class ReplaceProcessor
- extends OneToOneTextFileProcessor
Processor replacing an string by another in the input file.
- Author:
- BEROL
| Methods inherited from class net.sf.filePiper.model.OneToOneByteFileProcessor |
bytesProcessed, endBatch, getCurrentInputFileInfo, getEditor, getOutputCardinality, getProposedExtension, getSettings, getStatusMessage, init, inputFileStarted, linesProcessed, setCurrentInputFileInfo, setProposedFilePath, startBatch |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReplaceProcessor
public ReplaceProcessor()
getProcessorName
public String getProcessorName()
- Specified by:
getProcessorName in interface FileProcessor- Specified by:
getProcessorName in class OneToOneByteFileProcessor
- Returns:
- A displayable name for this processor.
getProcessorDescription
public String getProcessorDescription()
- Overrides:
getProcessorDescription in class OneToOneByteFileProcessor
getReplaced
public String getReplaced()
setReplaced
public void setReplaced(String newReplaced)
getSearchMethod
public net.sf.filePiper.processors.ReplaceProcessor.SearchMethod getSearchMethod()
setSearchMethod
public void setSearchMethod(net.sf.filePiper.processors.ReplaceProcessor.SearchMethod method)
getReplacement
public String getReplacement()
setReplacement
public void setReplacement(String newReplacement)
getReplacementByLine
public boolean getReplacementByLine()
setReplacementByLine
public void setReplacementByLine(boolean byLine)
getProposedNameSuffix
public String getProposedNameSuffix()
- Specified by:
getProposedNameSuffix in class OneToOneByteFileProcessor
process
public void process(BufferedReader in,
BufferedWriter out,
FileProcessorEnvironment env)
throws IOException
- Specified by:
process in class OneToOneTextFileProcessor
- Throws:
IOException
Copyright © 2010. All Rights Reserved.