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[]dimensionprotected intm_currentParanLevelprotected java.util.List<java.lang.Integer>[]m_listLengthsprotected java.io.StreamTokenizerm_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.CustomStreamTokenizerCustomTokenizeWKT(java.lang.String wkt)intgetDimensions()intgetOrdinatesSize()intreadByte()ByteOrderreadByteOrder()doublereadDouble(ByteOrder byteOrder)voidreadEndList()voidreadEndListOrSeparator()intreadInnerLabel()intreadLabel(ByteOrder byteOrder, int outerLabel)protected java.util.List<java.lang.Integer>[]readListLengths(WKT.CustomStreamTokenizer tokenizer, int[] dimension)voidreadSeparator()voidreadStartList()intreadStartList(ByteOrder byteOrder)protected java.io.StreamTokenizertokenizeWKT(java.lang.String wkt)
-
-
-
Method Detail
-
getOrdinatesSize
public int getOrdinatesSize()
- Specified by:
getOrdinatesSizein interfaceWKInputStream
-
getDimensions
public int getDimensions()
- Specified by:
getDimensionsin interfaceWKInputStream
-
readDouble
public double readDouble(ByteOrder byteOrder)
- Specified by:
readDoublein interfaceWKInputStream
-
readLabel
public int readLabel(ByteOrder byteOrder, int outerLabel)
- Specified by:
readLabelin interfaceWKInputStream
-
readInnerLabel
public int readInnerLabel()
- Specified by:
readInnerLabelin interfaceWKInputStream
-
readStartList
public void readStartList()
- Specified by:
readStartListin interfaceWKInputStream
-
readStartList
public int readStartList(ByteOrder byteOrder) throws java.lang.RuntimeException
- Specified by:
readStartListin 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:
readEndListin interfaceWKInputStream
-
readEndListOrSeparator
public void readEndListOrSeparator()
- Specified by:
readEndListOrSeparatorin interfaceWKInputStream
-
readSeparator
public void readSeparator()
- Specified by:
readSeparatorin interfaceWKInputStream
-
readByte
public int readByte() throws GeometryExceptionWithContext- Specified by:
readBytein interfaceWKInputStream- Throws:
GeometryExceptionWithContext
-
readByteOrder
public ByteOrder readByteOrder() throws GeometryExceptionWithContext
- Specified by:
readByteOrderin interfaceWKInputStream- Throws:
GeometryExceptionWithContext
-
tokenizeWKT
protected java.io.StreamTokenizer tokenizeWKT(java.lang.String wkt)
-
CustomTokenizeWKT
protected WKT.CustomStreamTokenizer CustomTokenizeWKT(java.lang.String wkt)
-
-