org.postgis.binary
Class ValueSetter

java.lang.Object
  extended by org.postgis.binary.ValueSetter
Direct Known Subclasses:
ValueSetter.NDR, ValueSetter.XDR

public abstract class ValueSetter
extends java.lang.Object


Nested Class Summary
static class ValueSetter.NDR
           
static class ValueSetter.XDR
           
 
Field Summary
 byte endian
           
 
Constructor Summary
ValueSetter(ByteSetter data, byte endian)
           
 
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
 

Field Detail

endian

public final byte endian
Constructor Detail

ValueSetter

public ValueSetter(ByteSetter data,
                   byte endian)
Method Detail

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