at.tuwien.ifs.somtoolbox.apps.helper
Class VectorFileRewriter
java.lang.Object
at.tuwien.ifs.somtoolbox.apps.helper.VectorFileRewriter
- All Implemented Interfaces:
- SOMToolboxApp
public class VectorFileRewriter
- extends Object
- implements SOMToolboxApp
Re-writes an unit description file by replacing the label names of the input vectors as defined by the given mapping
file.
- Version:
- $Id: VectorFileRewriter.java 4267 2012-04-03 14:51:20Z mayer $
- Author:
- Michael Dittenbach, Rudolf Mayer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OPTIONS
private static final com.martiansoftware.jsap.Parameter[] OPTIONS
DESCRIPTION
public static String DESCRIPTION
LONG_DESCRIPTION
public static String LONG_DESCRIPTION
APPLICATION_TYPE
public static final SOMToolboxApp.Type APPLICATION_TYPE
VectorFileRewriter
public VectorFileRewriter()
main
public static void main(String[] args)
throws IOException
- Throws:
IOException
getReplacement
public static String getReplacement(Hashtable<String,String> mapping,
String[] keys,
String token,
OptionFactory.MatchMode matchMode)
readMappingFile
private static Hashtable<String,String> readMappingFile(String fName)
throws IOException
- Throws:
IOException