Package org.h2.util.geometry
Class EWKBUtils.EWKBSource
java.lang.Object
org.h2.util.geometry.EWKBUtils.EWKBSource
- Enclosing class:
EWKBUtils
Helper source object for EWKB reading.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ewkb
private final byte[] ewkb -
offset
private int offset -
bigEndian
boolean bigEndianWhether current byte order is big-endian.
-
-
Constructor Details
-
EWKBSource
EWKBSource(byte[] ewkb) Creates new instance of EWKB source.- Parameters:
ewkb
- EWKB
-
-
Method Details
-
readByte
byte readByte()Reads one byte.- Returns:
- next byte
-
readInt
int readInt()Reads a 32-bit integer using current byte order.- Returns:
- next 32-bit integer
-
readCoordinate
double readCoordinate()Reads a 64-bit floating point using current byte order.- Returns:
- next 64-bit floating point
-
toString
-