Klasse ValueGetter

java.lang.Object
io.github.sebasbaumh.postgis.binary.ValueGetter
Bekannte direkte Unterklassen:
BinaryValueGetter, StringValueGetter

public abstract class ValueGetter extends Object
A base class for value readers.
Autor:
Sebastian Baumhekel
  • Verschachtelte Klassen - Übersicht

    Verschachtelte Klassen
    Modifizierer und Typ
    Klasse
    Beschreibung
    protected static interface 
    Builder for an int from a byte sequence.
    protected static interface 
    Builder for a long from a byte sequence.
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    protected int
    Current encoding (default is little endian encoding).
    Builder for integer values respecting the current encoding (default is little endian encoding).
    Builder for long values respecting the current encoding (default is little endian encoding).
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    Constructs an instance.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    double
    Get a double value.
    int
    Get an integer value.
    long
    Get a long value.
    protected abstract int
    Gets a byte at the current index.
    void
    Reads the encoding and adjusts the internal decoder if necessary.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • endian

      protected int endian
      Current encoding (default is little endian encoding).
    • funcInt

      protected ValueGetter.IntBuilder funcInt
      Builder for integer values respecting the current encoding (default is little endian encoding).
    • funcLong

      protected ValueGetter.LongBuilder funcLong
      Builder for long values respecting the current encoding (default is little endian encoding).
  • Konstruktordetails

    • ValueGetter

      public ValueGetter()
      Constructs an instance.
  • Methodendetails

    • getDouble

      public double getDouble()
      Get a double value.
      Gibt zurück:
      double value
    • getInt

      public int getInt()
      Get an integer value.
      Gibt zurück:
      integer value
    • getLong

      public long getLong()
      Get a long value.
      Gibt zurück:
      long value
    • getNextByte

      protected abstract int getNextByte()
      Gets a byte at the current index.
      Gibt zurück:
      byte
      Löst aus:
      IndexOutOfBoundsException - if the current index is out of the range
    • readEncoding

      public void readEncoding()
      Reads the encoding and adjusts the internal decoder if necessary.
      Löst aus:
      IllegalArgumentException - if the endian type is unknown