net.sf.filePiper.processors
Class ReplaceProcessor

java.lang.Object
  extended by net.sf.filePiper.model.OneToOneByteFileProcessor
      extended by net.sf.filePiper.model.OneToOneTextFileProcessor
          extended by 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

Field Summary
 
Fields inherited from interface net.sf.filePiper.model.FileProcessor
MANY, NONE, ONE
 
Constructor Summary
ReplaceProcessor()
           
 
Method Summary
 String getProcessorDescription()
           
 String getProcessorName()
           
 String getProposedNameSuffix()
           
 String getReplaced()
           
 String getReplacement()
           
 boolean getReplacementByLine()
           
 net.sf.filePiper.processors.ReplaceProcessor.SearchMethod getSearchMethod()
           
 void process(BufferedReader in, BufferedWriter out, FileProcessorEnvironment env)
           
 void setReplaced(String newReplaced)
           
 void setReplacement(String newReplacement)
           
 void setReplacementByLine(boolean byLine)
           
 void setSearchMethod(net.sf.filePiper.processors.ReplaceProcessor.SearchMethod method)
           
 
Methods inherited from class net.sf.filePiper.model.OneToOneTextFileProcessor
process, process
 
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
 

Constructor Detail

ReplaceProcessor

public ReplaceProcessor()
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.

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 © 2011. All Rights Reserved.