? ByteOrderMark

java.lang.Object
org.apache.commons.io.ByteOrderMark
????????:
Serializable

public class ByteOrderMark extends Object implements Serializable
Byte Order Mark (BOM) representation - see BOMInputStream.
???????:
2.0
????:
  • ??????

  • ???????

  • ??????

    • getCharsetName

      Gets the name of the Charset the BOM represents.
      ??:
      the character set name
    • length

      public int length()
      Gets the length of the BOM's bytes.
      ??:
      the length of the BOM's bytes
    • get

      public int get(int pos)
      Gets the byte at the specified position.
      ??:
      pos - The position
      ??:
      The specified byte
    • getBytes

      public byte[] getBytes()
      Gets a copy of the BOM's bytes.
      ??:
      a copy of the BOM's bytes
    • equals

      public boolean equals(Object obj)
      Indicates if this BOM's bytes equals another.
      ??:
      equals ??? Object
      ??:
      obj - The object to compare to
      ??:
      true if the bom's bytes are equal, otherwise false
    • hashCode

      public int hashCode()
      Computes the hashcode for this BOM.
      ??:
      hashCode ??? Object
      ??:
      the hashcode for this BOM.
      ????:
    • toString

      public String toString()
      Converts this instance to a String representation of the BOM.
      ??:
      toString ??? Object
      ??:
      the length of the BOM's bytes