Package oracle.spatial.util
Class WKT.WKTInputStream
- java.lang.Object
-
- oracle.spatial.util.WKT.WKTInputStream
-
- All Implemented Interfaces:
WKInputStream
- Enclosing class:
- WKT
protected class WKT.WKTInputStream extends java.lang.Object implements WKInputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]
dimension
protected int
m_currentParanLevel
protected java.util.List<java.lang.Integer>[]
m_listLengths
protected java.io.StreamTokenizer
m_tokenizer
-
Constructor Summary
Constructors Constructor Description WKTInputStream(java.lang.String wkt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WKT.CustomStreamTokenizer
CustomTokenizeWKT(java.lang.String wkt)
int
getDimensions()
int
getOrdinatesSize()
int
readByte()
ByteOrder
readByteOrder()
double
readDouble(ByteOrder byteOrder)
void
readEndList()
void
readEndListOrSeparator()
int
readInnerLabel()
int
readLabel(ByteOrder byteOrder, int outerLabel)
protected java.util.List<java.lang.Integer>[]
readListLengths(WKT.CustomStreamTokenizer tokenizer, int[] dimension)
void
readSeparator()
void
readStartList()
int
readStartList(ByteOrder byteOrder)
protected java.io.StreamTokenizer
tokenizeWKT(java.lang.String wkt)
-
-
-
Method Detail
-
getOrdinatesSize
public int getOrdinatesSize()
- Specified by:
getOrdinatesSize
in interfaceWKInputStream
-
getDimensions
public int getDimensions()
- Specified by:
getDimensions
in interfaceWKInputStream
-
readDouble
public double readDouble(ByteOrder byteOrder)
- Specified by:
readDouble
in interfaceWKInputStream
-
readLabel
public int readLabel(ByteOrder byteOrder, int outerLabel)
- Specified by:
readLabel
in interfaceWKInputStream
-
readInnerLabel
public int readInnerLabel()
- Specified by:
readInnerLabel
in interfaceWKInputStream
-
readStartList
public void readStartList()
- Specified by:
readStartList
in interfaceWKInputStream
-
readStartList
public int readStartList(ByteOrder byteOrder) throws java.lang.RuntimeException
- Specified by:
readStartList
in interfaceWKInputStream
- Throws:
java.lang.RuntimeException
-
readListLengths
protected java.util.List<java.lang.Integer>[] readListLengths(WKT.CustomStreamTokenizer tokenizer, int[] dimension)
-
readEndList
public void readEndList()
- Specified by:
readEndList
in interfaceWKInputStream
-
readEndListOrSeparator
public void readEndListOrSeparator()
- Specified by:
readEndListOrSeparator
in interfaceWKInputStream
-
readSeparator
public void readSeparator()
- Specified by:
readSeparator
in interfaceWKInputStream
-
readByte
public int readByte() throws GeometryExceptionWithContext
- Specified by:
readByte
in interfaceWKInputStream
- Throws:
GeometryExceptionWithContext
-
readByteOrder
public ByteOrder readByteOrder() throws GeometryExceptionWithContext
- Specified by:
readByteOrder
in interfaceWKInputStream
- Throws:
GeometryExceptionWithContext
-
tokenizeWKT
protected java.io.StreamTokenizer tokenizeWKT(java.lang.String wkt)
-
CustomTokenizeWKT
protected WKT.CustomStreamTokenizer CustomTokenizeWKT(java.lang.String wkt)
-
-