at.tuwien.ifs.somtoolbox.apps.helper
Class UnitDescriptionMappingRewriter
java.lang.Object
at.tuwien.ifs.somtoolbox.apps.helper.UnitDescriptionMappingRewriter
public class UnitDescriptionMappingRewriter
- extends java.lang.Object
Provides rewriting of the vector labels in an unit description file.
Note: Does not work with the "file format version 1.1" files, as they are written in a different format.
- Version:
- $Id: UnitDescriptionMappingRewriter.java 3589 2010-05-21 10:42:01Z mayer $
- Author:
- Michael Dittenbach, Rudolf Mayer
Field Summary |
private static java.lang.String |
DELIMITER
|
Method Summary |
static void |
main(java.lang.String[] args)
Starts the rewriting process. |
private static java.util.Hashtable<java.lang.String,java.lang.String> |
readMappingFile(java.lang.String fileName)
Reads the mapping file into a Hashtable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DELIMITER
private static final java.lang.String DELIMITER
- See Also:
- Constant Field Values
UnitDescriptionMappingRewriter
public UnitDescriptionMappingRewriter()
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Starts the rewriting process. Options are:
- -u name of the unit description gile, mandatory
- --nameMap name of the mapping file, mandatory
- output name of output file, mandatory
- Parameters:
args
- the execution arguments as stated above.
- Throws:
java.io.IOException
readMappingFile
private static java.util.Hashtable<java.lang.String,java.lang.String> readMappingFile(java.lang.String fileName)
throws java.io.IOException
- Reads the mapping file into a
Hashtable
- Parameters:
fileName
- the mapping file.
- Returns:
- a
Hashtable
of the mapping.
- Throws:
java.io.IOException
- if the file can't be read.