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:ValueGetterGet an integer value.- Overrides:
getIntin classValueGetter- Returns:
- integer value
-
getLong
public long getLong()Description copied from class:ValueGetterGet a long value.- Overrides:
getLongin classValueGetter- Returns:
- long value
-
getNextByte
protected int getNextByte()Description copied from class:ValueGetterGets a byte at the current index.- Specified by:
getNextBytein classValueGetter- Returns:
- byte
-