protected class WKT.WKTInputStream extends java.lang.Object implements WKInputStream
Modifier and Type | Field and Description |
---|---|
protected int[] |
dimension |
protected int |
m_currentParanLevel |
protected java.util.Vector[] |
m_listLengths |
protected java.io.StreamTokenizer |
m_tokenizer |
Constructor and Description |
---|
WKTInputStream(byte[] wkt) |
Modifier and Type | Method and Description |
---|---|
int |
getDimensions() |
int |
readByte() |
ByteOrder |
readByteOrder() |
double |
readDouble(ByteOrder byteOrder) |
void |
readEndList() |
void |
readEndListOrSeparator() |
int |
readInnerLabel() |
int |
readLabel(ByteOrder byteOrder,
int outerLabel) |
protected java.util.Vector[] |
readListLengths(java.io.StreamTokenizer tokenizer,
int[] dimension) |
void |
readSeparator() |
void |
readStartList() |
int |
readStartList(ByteOrder byteOrder) |
protected java.io.StreamTokenizer |
tokenizeWKT(java.lang.String wkt) |
protected final java.io.StreamTokenizer m_tokenizer
protected final java.util.Vector[] m_listLengths
protected int m_currentParanLevel
protected int[] dimension
public int getDimensions()
getDimensions
in interface WKInputStream
public double readDouble(ByteOrder byteOrder)
readDouble
in interface WKInputStream
public int readLabel(ByteOrder byteOrder, int outerLabel)
readLabel
in interface WKInputStream
public int readInnerLabel()
readInnerLabel
in interface WKInputStream
public void readStartList()
readStartList
in interface WKInputStream
public int readStartList(ByteOrder byteOrder) throws java.lang.RuntimeException
readStartList
in interface WKInputStream
java.lang.RuntimeException
protected java.util.Vector[] readListLengths(java.io.StreamTokenizer tokenizer, int[] dimension)
public void readEndList()
readEndList
in interface WKInputStream
public void readEndListOrSeparator()
readEndListOrSeparator
in interface WKInputStream
public void readSeparator()
readSeparator
in interface WKInputStream
public int readByte() throws GeometryExceptionWithContext
readByte
in interface WKInputStream
GeometryExceptionWithContext
public ByteOrder readByteOrder() throws GeometryExceptionWithContext
readByteOrder
in interface WKInputStream
GeometryExceptionWithContext
protected java.io.StreamTokenizer tokenizeWKT(java.lang.String wkt)