org.postgis.binary
Class ValueGetter

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

public abstract class ValueGetter
extends java.lang.Object


Nested Class Summary
static class ValueGetter.NDR
           
static class ValueGetter.XDR
           
 
Field Summary
 byte endian
           
 
Constructor Summary
ValueGetter(ByteGetter data, byte endian)
           
 
Method Summary
 byte getByte()
          Get a byte, should be equal for all endians
 double getDouble()
          Get a double.
 int getInt()
           
protected abstract  int getInt(int index)
          Get a 32-Bit integer
 long getLong()
           
protected abstract  long getLong(int index)
          Get a long value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

endian

public final byte endian
Constructor Detail

ValueGetter

public ValueGetter(ByteGetter data,
                   byte endian)
Method Detail

getByte

public byte getByte()
Get a byte, should be equal for all endians


getInt

public int getInt()

getLong

public long getLong()

getInt

protected abstract int getInt(int index)
Get a 32-Bit integer


getLong

protected abstract long getLong(int index)
Get a long value. This is not needed directly, but as a nice side-effect from GetDouble.


getDouble

public double getDouble()
Get a double.