Class StringTable
- java.lang.Object
-
- org.openstreetmap.osmosis.osmbinary.StringTable
-
public class StringTable extends java.lang.ObjectClass for mapping a set of strings to integers, giving frequently occuring strings small integers.
-
-
Constructor Summary
Constructors Constructor Description StringTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidfinish()intgetIndex(java.lang.String s)After the stringtable has been built, return the offset of a string in it.voidincr(java.lang.String s)Osmformat.StringTable.Builderserialize()
-
-
-
Method Detail
-
incr
public void incr(java.lang.String s)
-
getIndex
public int getIndex(java.lang.String s)
After the stringtable has been built, return the offset of a string in it. Note, value '0' is reserved for use as a delimiter and will not be returned.- Parameters:
s-- Returns:
-
finish
public void finish()
-
clear
public void clear()
-
serialize
public Osmformat.StringTable.Builder serialize()
-
-