Class ValueSetter
- java.lang.Object
-
- io.github.sebasbaumh.postgis.binary.ValueSetter
-
public class ValueSetter extends java.lang.ObjectAllows writing values as a string in little endian encoding and hex format.- Author:
- Sebastian Baumhekel
-
-
Constructor Summary
Constructors Constructor Description ValueSetter()Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetByte(byte b)Sets a byte.voidsetDouble(double data)Writes a double.voidsetInt(int value)Sets a 32-Bit integervoidsetLong(long value)Sets a long value.java.lang.StringtoString()Gets the string in little endian encoding and hex format.
-
-
-
Method Detail
-
setByte
public void setByte(byte b)
Sets a byte.- Parameters:
b- byte value to set with
-
setDouble
public void setDouble(double data)
Writes a double.- Parameters:
data- double value to be set with
-
setInt
public void setInt(int value)
Sets a 32-Bit integer- Parameters:
value- int value to be set with
-
setLong
public void setLong(long value)
Sets a long value. This is not needed directly, but as a nice side-effect from setDouble.- Parameters:
value- value value to be set with
-
toString
public java.lang.String toString()
Gets the string in little endian encoding and hex format.- Overrides:
toStringin classjava.lang.Object- Returns:
- string in little endian encoding and hex format.
-
-