Class ValueGetter
- java.lang.Object
-
- io.github.sebasbaumh.postgis.binary.ValueGetter
-
public class ValueGetter extends Object
Allows reading values.- Author:
- Sebastian Baumhekel
-
-
Constructor Summary
Constructors Constructor Description ValueGetter(String value)
Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDouble()
Get a double.int
getInt()
Get an integer.long
getLong()
Get a long.void
readEncoding()
Reads the encoding and adjusts the internal decoder if necessary.
-
-
-
Constructor Detail
-
ValueGetter
public ValueGetter(String value)
Constructs an instance.- Parameters:
value
- value as hex string- Throws:
IllegalArgumentException
- if the endian type is unknown
-
-
Method Detail
-
getDouble
public double getDouble()
Get a double.- Returns:
- the double value
-
getInt
public int getInt()
Get an integer.- Returns:
- integer
-
getLong
public long getLong()
Get a long.- Returns:
- long
-
readEncoding
public void readEncoding()
Reads the encoding and adjusts the internal decoder if necessary.- Throws:
IllegalArgumentException
- if the endian type is unknown
-
-