Class ValueGetter

java.lang.Object
net.postgis.jdbc.geometry.binary.ValueGetter
Direct Known Subclasses:
ValueGetter.NDR, ValueGetter.XDR

public abstract class ValueGetter extends Object
  • Field Details

    • endian

      public final byte endian
  • Constructor Details

    • ValueGetter

      public ValueGetter(ByteGetter data, byte endian)
  • Method Details

    • getByte

      public byte getByte()
      Get a byte, should be equal for all endians
      Returns:
      the byte value
    • getInt

      public int getInt()
    • getLong

      public long getLong()
    • getInt

      protected abstract int getInt(int index)
      Get a 32-Bit integer
      Parameters:
      index - the index to get the value from
      Returns:
      the int value
    • getLong

      protected abstract long getLong(int index)
      Get a long value. This is not needed directly, but as a nice side-effect from GetDouble.
      Parameters:
      index - the index to get the value from
      Returns:
      the long value
    • getDouble

      public double getDouble()
      Get a double.
      Returns:
      the double value