at.tuwien.ifs.somtoolbox.apps.helper
Class StringReplacer

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface at.tuwien.ifs.somtoolbox.apps.SOMToolboxApp
SOMToolboxApp.Type
 
Field Summary
static SOMToolboxApp.Type APPLICATION_TYPE
           
static String DESCRIPTION
           
static String LONG_DESCRIPTION
           
static com.martiansoftware.jsap.Parameter[] OPTIONS
           
 
Fields inherited from interface at.tuwien.ifs.somtoolbox.apps.SOMToolboxApp
DEV_BY_STRING, HOMEPAGE, REQUIRED_MEMBERS, TYPE_GROUPED_COMPARATOR
 
Constructor Summary
StringReplacer()
           
 
Method Summary
static void main(String[] args)
           
private static String replaceInFile(String toReplace, String replacement, String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

StringReplacer

public StringReplacer()
Method Detail

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