Class BinaryValueSetter
java.lang.Object
io.github.sebasbaumh.postgis.binary.ValueSetter
io.github.sebasbaumh.postgis.binary.BinaryValueSetter
Allows writing values to a byte array in little endian format.
- Author:
- Sebastian Baumhekel
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.github.sebasbaumh.postgis.binary.ValueSetter
setDouble
-
Constructor Details
-
BinaryValueSetter
public BinaryValueSetter()
-
-
Method Details
-
getValue
public byte[] getValue()Gets the written value.- Returns:
- value
-
setByte
public void setByte(byte b) Description copied from class:ValueSetter
Sets a byte.- Specified by:
setByte
in classValueSetter
- Parameters:
b
- byte value to set with
-
setInt
public void setInt(int value) Description copied from class:ValueSetter
Sets a 32-Bit integer- Overrides:
setInt
in classValueSetter
- Parameters:
value
- int value to be set with
-
setLong
public void setLong(long value) Description copied from class:ValueSetter
Sets a long value. This is not needed directly, but as a nice side-effect from setDouble.- Overrides:
setLong
in classValueSetter
- Parameters:
value
- value value to be set with
-