Klasse ValueGetter
java.lang.Object
io.github.sebasbaumh.postgis.binary.ValueGetter
- Bekannte direkte Unterklassen:
BinaryValueGetter,StringValueGetter
A base class for value readers.
- Autor:
- Sebastian Baumhekel
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungprotected static interfaceBuilder for an int from a byte sequence.protected static interfaceBuilder for a long from a byte sequence. -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected intCurrent encoding (default is little endian encoding).protected ValueGetter.IntBuilderBuilder for integer values respecting the current encoding (default is little endian encoding).protected ValueGetter.LongBuilderBuilder for long values respecting the current encoding (default is little endian encoding). -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
-
Felddetails
-
endian
protected int endianCurrent encoding (default is little endian encoding). -
funcInt
Builder for integer values respecting the current encoding (default is little endian encoding). -
funcLong
Builder for long values respecting the current encoding (default is little endian encoding).
-
-
Konstruktordetails
-
ValueGetter
public ValueGetter()Constructs an instance.
-
-
Methodendetails
-
getDouble
public double getDouble()Get a double value.- Gibt zurück:
- double value
-
getInt
public int getInt()Get an integer value.- Gibt zurück:
- integer value
-
getLong
public long getLong()Get a long value.- Gibt zurück:
- long value
-
getNextByte
protected abstract int getNextByte()Gets a byte at the current index.- Gibt zurück:
- byte
- Löst aus:
IndexOutOfBoundsException- if the current index is out of the range
-
readEncoding
public void readEncoding()Reads the encoding and adjusts the internal decoder if necessary.- Löst aus:
IllegalArgumentException- if the endian type is unknown
-