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 intgetInt()Get an integer value.longgetLong()Get a long value.protected intgetNextByte()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: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
-
-