public class Labels
extends java.lang.Object
Constructor and Description |
---|
Labels()
Creates a new LabelsFile associated with the specified path.
|
Labels(java.io.File inputFile) |
Modifier and Type | Method and Description |
---|---|
void |
addTag(int vertexId,
java.lang.String tagId,
java.lang.String tagValue) |
void |
addVertexId(int vertexId) |
java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.lang.String>> |
getLabelsMap() |
void |
readFromFile(java.io.File inputFile)
Reads the wadj.labels file at the pathname that the object was constructed
with.
|
void |
writeToFile(java.io.File outputFile)
Writes the stored data to the specified outputFile.
|
public Labels()
path
- java.io.IOException
public Labels(java.io.File inputFile) throws java.io.IOException
inputFile
- java.io.IOException
public java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.lang.String>> getLabelsMap()
public void addVertexId(int vertexId)
vertexID
- public void addTag(int vertexId, java.lang.String tagId, java.lang.String tagValue)
vertexId
- tagId
- tagValue
- public void readFromFile(java.io.File inputFile) throws java.io.IOException
java.io.IOException
public void writeToFile(java.io.File outputFile) throws java.io.IOException
outputFile
- java.io.IOException