Class ValueGetter

    • Field Detail

      • 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).
    • Constructor Detail

      • ValueGetter

        public ValueGetter()
        Constructs an instance.
    • Method Detail

      • getDouble

        public double getDouble()
        Get a double value.
        Returns:
        double value
      • getInt

        public int getInt()
        Get an integer value.
        Returns:
        integer value
      • getLong

        public long getLong()
        Get a long value.
        Returns:
        long value
      • getNextByte

        protected abstract int getNextByte()
        Gets a byte at the current index.
        Returns:
        byte
        Throws:
        IndexOutOfBoundsException - if the current index is out of the range
      • readEncoding

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