Class ValueGetter


  • public class ValueGetter
    extends Object
    Allows reading values.
    Author:
    Sebastian Baumhekel
    • Constructor Detail

      • ValueGetter

        public ValueGetter​(String value)
        Constructs an instance.
        Parameters:
        value - value as hex string
        Throws:
        IllegalArgumentException - if the endian type is unknown
    • Method Detail

      • getDouble

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

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

        public long getLong()
        Get a long.
        Returns:
        long
      • readEncoding

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