public static enum CharsetSniffingInputStream.Encoding extends java.lang.Enum<CharsetSniffingInputStream.Encoding>
Enum Constant and Description |
---|
INVALID |
UTF16be |
UTF16be2 |
UTF16le |
UTF16le2 |
UTF32be |
UTF32be2 |
UTF32le |
UTF32le2 |
UTF8 |
Modifier and Type | Method and Description |
---|---|
int |
equals(byte[] bom) |
boolean |
getBom() |
java.lang.String |
getEncoding() |
static CharsetSniffingInputStream.Encoding |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CharsetSniffingInputStream.Encoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CharsetSniffingInputStream.Encoding UTF32be
public static final CharsetSniffingInputStream.Encoding UTF32le
public static final CharsetSniffingInputStream.Encoding INVALID
public static final CharsetSniffingInputStream.Encoding UTF16be
public static final CharsetSniffingInputStream.Encoding UTF16le
public static final CharsetSniffingInputStream.Encoding UTF8
public static final CharsetSniffingInputStream.Encoding UTF32be2
public static final CharsetSniffingInputStream.Encoding UTF32le2
public static final CharsetSniffingInputStream.Encoding UTF16be2
public static final CharsetSniffingInputStream.Encoding UTF16le2
public static CharsetSniffingInputStream.Encoding[] values()
for (CharsetSniffingInputStream.Encoding c : CharsetSniffingInputStream.Encoding.values()) System.out.println(c);
public static CharsetSniffingInputStream.Encoding valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getEncoding()
public boolean getBom()
public int equals(byte[] bom)
Copyright © 2010 - 2020 Adobe. All Rights Reserved