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

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

Field Summary
private static String DELIMITER
           
 
Constructor Summary
UnitDescriptionMappingRewriter()
           
 
Method Summary
static void main(String[] args)
          Starts the rewriting process.
private static Hashtable<String,String> readMappingFile(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
 

Field Detail

DELIMITER

private static final String DELIMITER
See Also:
Constant Field Values
Constructor Detail

UnitDescriptionMappingRewriter

public UnitDescriptionMappingRewriter()
Method Detail

main

public static void main(String[] args)
                 throws IOException
Starts the rewriting process. Options are:

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.