Package org.postgis.binary
Class ValueSetter
- java.lang.Object
-
- org.postgis.binary.ValueSetter
-
- Direct Known Subclasses:
ValueSetter.NDR,ValueSetter.XDR
public abstract class ValueSetter extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValueSetter.NDRstatic classValueSetter.XDR
-
Field Summary
Fields Modifier and Type Field Description byteendian
-
Constructor Summary
Constructors Constructor Description ValueSetter(ByteSetter data, byte endian)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidsetByte(byte value)Set a byte, should be equal for all endiansvoidsetDouble(double data)Set a double.voidsetInt(int value)protected abstract voidsetInt(int value, int index)Set a 32-Bit integervoidsetLong(long value)protected abstract voidsetLong(long data, int index)Set a long value.StringtoString()
-
-
-
Constructor Detail
-
ValueSetter
public ValueSetter(ByteSetter data, byte endian)
-
-
Method Detail
-
setByte
public void setByte(byte value)
Set a byte, should be equal for all endians- Parameters:
value- byte value to be set with.
-
setInt
public void setInt(int value)
-
setLong
public void setLong(long value)
-
setInt
protected abstract void setInt(int value, int index)Set a 32-Bit integer- Parameters:
value- int value to be set withindex- int value for the index
-
setLong
protected abstract void setLong(long data, int index)Set a long value. This is not needed directly, but as a nice side-effect from GetDouble.- Parameters:
data- int value to be set withindex- int value for the index
-
setDouble
public void setDouble(double data)
Set a double.- Parameters:
data- double value to be set with
-
-