Enum Endianness

java.lang.Object
java.lang.Enum<Endianness>
org.apache.xmlgraphics.image.writer.Endianness
All Implemented Interfaces:
Serializable, Comparable<Endianness>, java.lang.constant.Constable

public enum Endianness extends Enum<Endianness>
Enumeration for specifying the endianness of the image.
See Also:
  • Enum Constant Details

    • 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 Details

    • values

      public static Endianness[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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.