Class ValueGetter


  • public class ValueGetter
    extends java.lang.Object
    Allows reading values.
    Author:
    Sebastian Baumhekel
    • Constructor Summary

      Constructors 
      Constructor Description
      ValueGetter​(java.lang.String value)
      Constructs an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getDouble()
      Get a double.
      int getInt()
      Get an integer.
      long getLong()
      Get a long.
      void readEncoding()
      Reads the encoding and adjusts the internal decoder if necessary.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ValueGetter

        public ValueGetter​(java.lang.String value)
        Constructs an instance.
        Parameters:
        value - value as hex string
        Throws:
        java.lang.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:
        java.lang.IllegalArgumentException - if the endian type is unknown