at.tuwien.ifs.somtoolbox.apps.helper
Class StringReplacer
java.lang.Object
at.tuwien.ifs.somtoolbox.apps.helper.StringReplacer
- All Implemented Interfaces:
- SOMToolboxApp
public class StringReplacer
- extends Object
- implements SOMToolboxApp
Replaces strings by a replacement in the given file.
- Version:
- $Id: StringReplacer.java 3675 2010-07-15 09:07:26Z frank $
- Author:
- Rudolf Mayer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OPTIONS
public static final com.martiansoftware.jsap.Parameter[] OPTIONS
DESCRIPTION
public static final String DESCRIPTION
- See Also:
- Constant Field Values
LONG_DESCRIPTION
public static final String LONG_DESCRIPTION
- See Also:
- Constant Field Values
APPLICATION_TYPE
public static final SOMToolboxApp.Type APPLICATION_TYPE
StringReplacer
public StringReplacer()
main
public static void main(String[] args)
throws IOException
- Throws:
IOException
replaceInFile
private static String replaceInFile(String toReplace,
String replacement,
String fileName)
throws FileNotFoundException,
IOException
- Throws:
FileNotFoundException
IOException