Package org.locationtech.spatial4j.io
Class PolyshapeReader.XReader
- java.lang.Object
-
- org.locationtech.spatial4j.io.PolyshapeReader.XReader
-
- Enclosing class:
- PolyshapeReader
public static class PolyshapeReader.XReader extends java.lang.Objectfrom Apache 2.0 licensed: https://github.com/googlemaps/android-maps-utils/blob/master/library/src/com/google/maps/android/PolyUtil.java
-
-
Field Summary
Fields Modifier and Type Field Description (package private) inthead(package private) java.io.Readerinput(package private) intlat(package private) intlng(package private) ShapeFactoryshpFactory
-
Constructor Summary
Constructors Constructor Description XReader(java.io.Reader input, ShapeFactory shpFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisData()booleanisDone()booleanisEvent()intpeek()doublereadDouble()(package private) intreadInt()charreadKey()doublereadLat()doublereadLng()<T extends ShapeFactory.PointsBuilder>
TreadPoints(T builder)
-
-
-
Field Detail
-
lat
int lat
-
lng
int lng
-
head
int head
-
input
final java.io.Reader input
-
shpFactory
final ShapeFactory shpFactory
-
-
Constructor Detail
-
XReader
public XReader(java.io.Reader input, ShapeFactory shpFactory) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
readPoints
public <T extends ShapeFactory.PointsBuilder> T readPoints(T builder) throws java.io.IOException
- Throws:
java.io.IOException
-
readLat
public double readLat() throws java.io.IOException- Throws:
java.io.IOException
-
readLng
public double readLng() throws java.io.IOException- Throws:
java.io.IOException
-
readDouble
public double readDouble() throws java.io.IOException- Throws:
java.io.IOException
-
peek
public int peek()
-
readKey
public char readKey() throws java.io.IOException- Throws:
java.io.IOException
-
isData
public boolean isData()
-
isDone
public boolean isDone()
-
isEvent
public boolean isEvent()
-
readInt
int readInt() throws java.io.IOException- Throws:
java.io.IOException
-
-