org.postgis.binary
Class ValueSetter
java.lang.Object
org.postgis.binary.ValueSetter
- Direct Known Subclasses:
- ValueSetter.NDR, ValueSetter.XDR
public abstract class ValueSetter
- extends java.lang.Object
Method Summary |
void |
setByte(byte value)
Get a byte, should be equal for all endians |
void |
setDouble(double data)
Get a double. |
void |
setInt(int value)
|
protected abstract void |
setInt(int value,
int index)
Get a 32-Bit integer |
void |
setLong(long value)
|
protected abstract void |
setLong(long data,
int index)
Get a long value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
endian
public final byte endian
ValueSetter
public ValueSetter(ByteSetter data,
byte endian)
setByte
public void setByte(byte value)
- Get a byte, should be equal for all endians
setInt
public void setInt(int value)
setLong
public void setLong(long value)
setInt
protected abstract void setInt(int value,
int index)
- Get a 32-Bit integer
setLong
protected abstract void setLong(long data,
int index)
- Get a long value. This is not needed directly, but as a nice side-effect
from GetDouble.
setDouble
public void setDouble(double data)
- Get a double.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object