at.tuwien.ifs.somtoolbox.apps.helper
Class UnitDescriptionMappingRewriter
java.lang.Object
at.tuwien.ifs.somtoolbox.apps.helper.UnitDescriptionMappingRewriter
public class UnitDescriptionMappingRewriter
- extends 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DELIMITER
private static final String DELIMITER
- See Also:
- Constant Field Values
UnitDescriptionMappingRewriter
public UnitDescriptionMappingRewriter()
main
public static void main(String[] args)
throws 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:
IOException
readMappingFile
private static Hashtable<String,String> readMappingFile(String fileName)
throws IOException
- Reads the mapping file into a
Hashtable
- Parameters:
fileName
- the mapping file.
- Returns:
- a
Hashtable
of the mapping.
- Throws:
IOException
- if the file can't be read.