Class UnicodeBOMInputStream.BOM

  • Enclosing class:
    UnicodeBOMInputStream

    public static final class UnicodeBOMInputStream.BOM
    extends java.lang.Object
    Type safe enumeration class that describes the different types of Unicode BOMs.
    • Constructor Detail

      • BOM

        private BOM​(byte[] bom,
                    java.lang.String description)
    • Method Detail

      • toString

        public final java.lang.String toString()
        Returns a String representation of this BOM value.
        Overrides:
        toString in class java.lang.Object
      • getBytes

        public final byte[] getBytes()
        Returns the bytes corresponding to this BOM value.
        Returns:
        the bytes corresponding to this BOM value.