Class ValueGetter


  • public class ValueGetter
    extends java.lang.Object
    Allows reading values.
    Author:
    sbaumhekel
    • 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
      byte getByte()
      Get a byte, should be equal for all endians
      double getDouble()
      Get a double.
      int getEndian()
      Gets the endian encoding.
      int getInt()
      Get an integer.
      long getLong()
      Get a long.
      • 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

      • getByte

        public byte getByte()
        Get a byte, should be equal for all endians
        Returns:
        the byte value
      • getDouble

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

        public int getEndian()
        Gets the endian encoding.
        Returns:
        endian encoding
      • getInt

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

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