Class BinaryValueGetter

java.lang.Object
io.github.sebasbaumh.postgis.binary.ValueGetter
io.github.sebasbaumh.postgis.binary.BinaryValueGetter

public class BinaryValueGetter extends ValueGetter
Allows reading values from a byte array.
Author:
Sebastian Baumhekel
  • Constructor Details

    • BinaryValueGetter

      public BinaryValueGetter(byte[] value, int offset)
      Constructs an instance.
      Parameters:
      value - value
      offset - offset to use
  • Method Details

    • getInt

      public int getInt()
      Description copied from class: ValueGetter
      Get an integer value.
      Overrides:
      getInt in class ValueGetter
      Returns:
      integer value
    • getLong

      public long getLong()
      Description copied from class: ValueGetter
      Get a long value.
      Overrides:
      getLong in class ValueGetter
      Returns:
      long value
    • getNextByte

      protected int getNextByte()
      Description copied from class: ValueGetter
      Gets a byte at the current index.
      Specified by:
      getNextByte in class ValueGetter
      Returns:
      byte