Class InfiniumDataFile

    • Method Detail

      • byteArrayToCharArray

        public static char[] byteArrayToCharArray​(byte[] stringBytes)
      • byteArrayToInt

        public static int byteArrayToInt​(byte[] bytes)
        Utility method to convert an unsigned short to an int.
        Parameters:
        bytes - The byte array representing the unsigned short. (Java has no unsigned values which is why we promote it to an int)
        Returns:
        The converted int.
      • shortToByteArray

        public static byte[] shortToByteArray​(short value)
        Utility method to convert a short to a byte array
        Parameters:
        value - The short value to convert to byte array
        Returns:
        The byte array containing the short in little endian format.
      • byteArrayToFloat

        public static float byteArrayToFloat​(byte[] bytes)
        Utility method to convert a byte array to a float value.
        Parameters:
        bytes - The byte array representing the float value.
        Returns:
        The converted float.
      • floatToByteArray

        public static byte[] floatToByteArray​(float floatValue)
        Utility method to convert a float to a byte array
        Parameters:
        floatValue - the float value to convert to byte array
        Returns:
        The byte array containing the float in little endian format.
      • getIdentifier

        public String getIdentifier()
      • setIdentifier

        public void setIdentifier​(String identifier)