kieker.tools.mappingGenerator
Class NameIdMap
java.lang.Object
kieker.tools.mappingGenerator.NameIdMap
public class NameIdMap
- extends Object
- Author:
- Andre van Hoorn
Constructor Summary |
NameIdMap()
Constructor for an empty map. |
NameIdMap
public NameIdMap()
- Constructor for an empty map.
registerName
public int registerName(String name)
- Adds the name and returns the id.
If the name has been registered before, the existing
id is returned.
- Parameters:
name
-
- Returns:
writeMapToFile
public void writeMapToFile(String filename)
throws IOException
- Throws:
IOException
readMapFromFile
public static NameIdMap readMapFromFile(String filename)
throws IOException
- Reads and returns a mapping from the given file.
- Parameters:
filename
-
- Throws:
IOException
Copyright 2011 the Kieker Project, http://kieker.sourceforge.net>