|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ie.tomallen.utils.ReplaceStrings
Implements a replaceString object, for binary and ASCII files. This class will take a file and replace will all occurances of "start" vector given with the equivalant element of the "end" vector
Dependencies: DirectoryHandler, Diff, java.io.File, java.lang.Vector
Constructor Summary | |
ReplaceStrings(java.util.Vector strStart,
java.util.Vector strEnd)
Constructor, Sets main variables for ReplaceString Class. |
|
ReplaceStrings(java.util.Vector strStart,
java.util.Vector strEnd,
java.lang.String filter,
boolean nested)
Constructor, Sets all variables for ReplaceString Class |
Method Summary | |
void |
changeDirectory(java.lang.String filename)
changeDirectory. |
boolean |
replaceFile(java.io.File fp)
replaceFile. |
void |
setOutputFile(java.lang.String filename)
setOutputFile. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReplaceStrings(java.util.Vector strStart, java.util.Vector strEnd, java.lang.String filter, boolean nested)
filter
- String, filename filer string. (from end of filename) e.g. '.html'nested
- Boolean, search all subdirectories.strStart
- Vector of Strings to replace.strEnd
- Vector of Strings with which to replace.public ReplaceStrings(java.util.Vector strStart, java.util.Vector strEnd)
strStart
- Vector of Strings to replace.strEnd
- Vector of Strings with which to replace.Method Detail |
public void setOutputFile(java.lang.String filename)
filename
- String.
TException
public void changeDirectory(java.lang.String filename) throws TException
TException
public boolean replaceFile(java.io.File fp) throws TException
fp
- File
TException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |