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 WKInputStreampublic double readDouble(ByteOrder byteOrder)
readDouble in interface WKInputStreampublic int readLabel(ByteOrder byteOrder, int outerLabel)
readLabel in interface WKInputStreampublic int readInnerLabel()
readInnerLabel in interface WKInputStreampublic void readStartList()
readStartList in interface WKInputStreampublic int readStartList(ByteOrder byteOrder) throws java.lang.RuntimeException
readStartList in interface WKInputStreamjava.lang.RuntimeExceptionprotected java.util.Vector[] readListLengths(java.io.StreamTokenizer tokenizer,
int[] dimension)
public void readEndList()
readEndList in interface WKInputStreampublic void readEndListOrSeparator()
readEndListOrSeparator in interface WKInputStreampublic void readSeparator()
readSeparator in interface WKInputStreampublic int readByte()
throws GeometryExceptionWithContext
readByte in interface WKInputStreamGeometryExceptionWithContextpublic ByteOrder readByteOrder() throws GeometryExceptionWithContext
readByteOrder in interface WKInputStreamGeometryExceptionWithContextprotected java.io.StreamTokenizer tokenizeWKT(java.lang.String wkt)