|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.io.bom.BOM
public class BOM
BOM represents a Byte-Order Mark, a byte sequence that can be found at the beginning of a Unicode text stream which indicates the encoding of the text that follows.
BOMInputStream| Constructor Summary | |
|---|---|
BOM(byte[] signature,
java.lang.String encoding)
Creates a new BOM instance identified by the given signature and designating the specified
character encoding. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Returns true if and only if the given Object is a BOM instance with the same
signature as this instance. |
java.lang.String |
getEncoding()
Returns the character encoding that this BOM denotes. |
byte[] |
getSignature()
Returns the byte sequence that identifies this BOM at the beginning of a byte stream. |
boolean |
sigEquals(byte[] bytes)
Returns true if this BOM's signature matches the given byte sequence. |
boolean |
sigStartsWith(byte[] bytes)
Returns true if this BOM's signature starts with the given byte sequence. |
java.lang.String |
toString()
Returns a String representation of this BOM. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BOM(byte[] signature,
java.lang.String encoding)
BOM instance identified by the given signature and designating the specified
character encoding.
signature - the byte sequence that identifies this BOMencoding - the character encoding designated by this BOM| Method Detail |
|---|
public byte[] getSignature()
public java.lang.String getEncoding()
public boolean sigStartsWith(byte[] bytes)
true if this BOM's signature starts with the given byte sequence.
bytes - the byte sequence to compare against this BOM's signature
public boolean sigEquals(byte[] bytes)
true if this BOM's signature matches the given byte sequence.
bytes - the byte sequence to compare against this BOM's signature
public boolean equals(java.lang.Object o)
true if and only if the given Object is a BOM instance with the same
signature as this instance. *
equals in class java.lang.Objecto - the Object to test for equality
public java.lang.String toString()
BOM.
toString in class java.lang.ObjectBOM.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard