Class BinaryValueGetter
java.lang.Object
io.github.sebasbaumh.postgis.binary.ValueGetter
io.github.sebasbaumh.postgis.binary.BinaryValueGetter
Allows reading values from a byte array.
- Author:
- Sebastian Baumhekel
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.sebasbaumh.postgis.binary.ValueGetter
ValueGetter.IntBuilder, ValueGetter.LongBuilder
-
Field Summary
Fields inherited from class io.github.sebasbaumh.postgis.binary.ValueGetter
endian, funcInt, funcLong
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.github.sebasbaumh.postgis.binary.ValueGetter
getDouble, readEncoding
-
Constructor Details
-
BinaryValueGetter
public BinaryValueGetter(byte[] value, int offset) Constructs an instance.- Parameters:
value
- valueoffset
- offset to use
-
-
Method Details
-
getInt
public int getInt()Description copied from class:ValueGetter
Get an integer value.- Overrides:
getInt
in classValueGetter
- Returns:
- integer value
-
getLong
public long getLong()Description copied from class:ValueGetter
Get a long value.- Overrides:
getLong
in classValueGetter
- Returns:
- long value
-
getNextByte
protected int getNextByte()Description copied from class:ValueGetter
Gets a byte at the current index.- Specified by:
getNextByte
in classValueGetter
- Returns:
- byte
-