Class BinaryValueGetter
- java.lang.Object
-
- io.github.sebasbaumh.postgis.binary.ValueGetter
-
- io.github.sebasbaumh.postgis.binary.BinaryValueGetter
-
public class BinaryValueGetter extends ValueGetter
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 Constructor Description BinaryValueGetter(byte[] value, int offset)
Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getInt()
Get an integer value.long
getLong()
Get a long value.protected int
getNextByte()
Gets a byte at the current index.-
Methods inherited from class io.github.sebasbaumh.postgis.binary.ValueGetter
getDouble, readEncoding
-
-
-
-
Method Detail
-
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
-
-