Enum Endianness

    • Enum Constant Detail

      • DEFAULT

        public static final Endianness DEFAULT
        Default endianness. This can be different depending on the output format or is used when the image format doesn't allow to specify the endianness.
      • LITTLE_ENDIAN

        public static final Endianness LITTLE_ENDIAN
        Little endian, least significant byte first, LSB, Intel Format.
      • BIG_ENDIAN

        public static final Endianness BIG_ENDIAN
        Big endian, most significant byte first, MSB, Motorola Format.
    • Method Detail

      • values

        public static Endianness[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Endianness c : Endianness.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Endianness valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getEndianType

        public static Endianness getEndianType​(String value)
        Translates an endian type specified in the configuration file into the equivalent type should one exist.
        Parameters:
        value - The value specified in the configration file
        Returns:
        Returns the Endianess object of the found type. If no type matches it returns null.