public enum EncodingEnum extends java.lang.Enum<EncodingEnum>
EncodingEnum
class is the enumerated list of document encodings.Enum Constant and Description |
---|
ASCII |
ISO88591 |
ISO88592 |
UTF16BE |
UTF16LE |
UTF8 |
WIN1250 |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsEncoding(java.lang.String encodKey)
Specifies if the input encoding is among predefined encodings
EncodingEnum . |
static EncodingEnum |
getEncoding(java.lang.String encodKey)
Returns
EncodingEnum object for corresponding key. |
java.lang.String |
getKey() |
java.lang.String |
toString() |
static EncodingEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EncodingEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncodingEnum UTF8
public static final EncodingEnum UTF16BE
public static final EncodingEnum UTF16LE
public static final EncodingEnum ASCII
public static final EncodingEnum WIN1250
public static final EncodingEnum ISO88591
public static final EncodingEnum ISO88592
public static EncodingEnum[] values()
for (EncodingEnum c : EncodingEnum.values()) System.out.println(c);
public static EncodingEnum 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 getKey()
public java.lang.String toString()
toString
in class java.lang.Enum<EncodingEnum>
public static EncodingEnum getEncoding(java.lang.String encodKey)
EncodingEnum
object for corresponding key.encodKey
- the key of the encoding.public static boolean containsEncoding(java.lang.String encodKey)
EncodingEnum
.encodKey
- the key of the encoding.EncodingEnum
.