|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.taverna.scuflworkers.ncbi.ReplacementStreamProcessor
public class ReplacementStreamProcessor
This class replaces text in the stream Last edited by $Author: sowen70 $
| Constructor Summary | |
|---|---|
ReplacementStreamProcessor()
|
|
ReplacementStreamProcessor(java.lang.String[] oldText,
java.lang.String[] replacementText)
Constructor |
|
ReplacementStreamProcessor(java.lang.String _oldText,
java.lang.String _replacementText)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.String[] |
getOldText()
|
java.lang.String[] |
getReplacementText()
|
java.util.Map |
processStream(java.io.InputStream stream)
This method iterates through a series of oldText and replacementText pairs, replacing all occurrences of the oldText with the replacementText. |
void |
setOldText(java.lang.String[] oldText)
|
void |
setReplacementText(java.lang.String[] replacementText)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplacementStreamProcessor()
public ReplacementStreamProcessor(java.lang.String _oldText,
java.lang.String _replacementText)
filename - _oldText - _replacementText -
public ReplacementStreamProcessor(java.lang.String[] oldText,
java.lang.String[] replacementText)
filename - oldText - replacementText - | Method Detail |
|---|
public java.util.Map processStream(java.io.InputStream stream)
throws java.io.IOException
processStream in interface StreamProcessorstream -
java.io.IOExceptionpublic java.lang.String[] getOldText()
public void setOldText(java.lang.String[] oldText)
oldText - The oldText to set.public java.lang.String[] getReplacementText()
public void setReplacementText(java.lang.String[] replacementText)
replacementText - The replacementText to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||