Class ValueGetter
- java.lang.Object
-
- io.github.sebasbaumh.postgis.binary.ValueGetter
-
public class ValueGetter extends java.lang.Object
Allows reading values.- Author:
- sbaumhekel
-
-
Constructor Summary
Constructors Constructor Description ValueGetter(java.lang.String value)
Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getByte()
Get a byte, should be equal for all endiansdouble
getDouble()
Get a double.int
getEndian()
Gets the endian encoding.int
getInt()
Get an integer.long
getLong()
Get a long.
-
-
-
Method Detail
-
getByte
public byte getByte()
Get a byte, should be equal for all endians- Returns:
- the byte value
-
getDouble
public double getDouble()
Get a double.- Returns:
- the double value
-
getEndian
public int getEndian()
Gets the endian encoding.- Returns:
- endian encoding
-
getInt
public int getInt()
Get an integer.- Returns:
- integer
-
getLong
public long getLong()
Get a long.- Returns:
- long
-
-