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.Object
from 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) int
head
(package private) java.io.Reader
input
(package private) int
lat
(package private) int
lng
(package private) ShapeFactory
shpFactory
-
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 boolean
isData()
boolean
isDone()
boolean
isEvent()
int
peek()
double
readDouble()
(package private) int
readInt()
char
readKey()
double
readLat()
double
readLng()
<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
-
-