Class BinaryValueSetter
- java.lang.Object
-
- io.github.sebasbaumh.postgis.binary.ValueSetter
-
- io.github.sebasbaumh.postgis.binary.BinaryValueSetter
-
public class BinaryValueSetter extends ValueSetter
Allows writing values to a byte array in little endian format.- Author:
- Sebastian Baumhekel
-
-
Constructor Summary
Constructors Constructor Description BinaryValueSetter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getValue()
Gets the written value.void
setByte(byte b)
Sets a byte.void
setInt(int value)
Sets a 32-Bit integervoid
setLong(long value)
Sets a long value.-
Methods inherited from class io.github.sebasbaumh.postgis.binary.ValueSetter
setDouble
-
-
-
-
Method Detail
-
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
-
-