Enum Class ByteOrderMark

java.lang.Object
java.lang.Enum<ByteOrderMark>
org.europa.together.domain.ByteOrderMark
All Implemented Interfaces:
Serializable, Comparable<ByteOrderMark>, Constable

public enum ByteOrderMark extends Enum<ByteOrderMark>
Existing Byte Order Mark (BOM) types.
  • Enum Constant Details

    • NONE

      public static final ByteOrderMark NONE
      None.
    • UTF_8

      public static final ByteOrderMark UTF_8
      UTF-8.
    • UTF_16LE

      public static final ByteOrderMark UTF_16LE
      UTF-16 Low Endian.
    • UTF_16BE

      public static final ByteOrderMark UTF_16BE
      UTF-16 Big Endian.
    • UTF_32LE

      public static final ByteOrderMark UTF_32LE
      UTF-32 Low Endian.
    • UTF_32BE

      public static final ByteOrderMark UTF_32BE
      UTF-32 Big Endian.
  • Method Details

    • values

      public static ByteOrderMark[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ByteOrderMark valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getBytes

      public byte[] getBytes()
      Get the Byte vale for a Byte Order.
      Returns:
      value as Byte
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ByteOrderMark>