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.voidsetByte(byte b)Sets a byte.voidsetInt(int value)Sets a 32-Bit integervoidsetLong(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:ValueSetterSets a byte.- Specified by:
setBytein classValueSetter- Parameters:
b- byte value to set with
-
setInt
public void setInt(int value)
Description copied from class:ValueSetterSets a 32-Bit integer- Overrides:
setIntin classValueSetter- Parameters:
value- int value to be set with
-
setLong
public void setLong(long value)
Description copied from class:ValueSetterSets a long value. This is not needed directly, but as a nice side-effect from setDouble.- Overrides:
setLongin classValueSetter- Parameters:
value- value value to be set with
-
-