|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | PROPERTY | METHOD | DETAIL: ENUM CONSTANTS | FIELD | PROPERTY | METHOD |
java.lang.Objectutils.gate.util.Encoding
enum Encoding
An enumeration of automatic encodings that can be determined from XML files. Note that this si not the same as the encodings and charsets found in the java api, hence the need for a separate enumeration. Each Encoding has an encoding (the canonical name from the java.nio API, and a boolean supported flag, which is true if the encoding is supported. Each also has a partial flag, which is true if support is partial.
Enum Constant Summary | |
---|---|
EBCDIC
|
|
HTML_default
An enumeration of automatic encodings that can be determined from XML files. |
|
UTF16_BE_Marked
|
|
UTF16_BE_Unmarked
|
|
UTF16_LE_Marked
|
|
UTF16_LE_Unmarked
|
|
UTF32_2143_Marked
|
|
UTF32_2143_Unmarked
|
|
UTF32_3412_Marked
|
|
UTF32_3412_Unmarked
|
|
UTF32_BE_Marked
|
|
UTF32_BE_Unmarked
|
|
UTF32_LE_Marked
|
|
UTF32_LE_Unmarked
|
|
UTF8
|
Property Summary | |
---|---|
private String |
encoding
The encoding: java.nio API canonical name |
private boolean |
partial
Is support for this encoding partial? |
private boolean |
supported
Is this Encoding supoprted? |
Constructor Summary | |
Encoding(String encoding, boolean supported, boolean partial)
Create an Encoding with the given encoding, supported and warn flags. |
|
Encoding(String encoding, boolean supported)
Create an Encoding with the given encoding and supported flag. |
Method Summary | |
---|---|
String
|
encoding()
Return the encoding String of this encoding, the java.nio API canonical name |
boolean
|
partial()
Return the partial flag of this encoding |
boolean
|
supported()
Return the supported flag of this encoding |
Encoding
|
valueOf(String name)
Returns the enum constant of this type with the specified name. |
Encoding[]
|
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Enum Constant Detail |
---|
Encoding EBCDIC
Encoding HTML_default
Encoding UTF16_BE_Marked
Encoding UTF16_BE_Unmarked
Encoding UTF16_LE_Marked
Encoding UTF16_LE_Unmarked
Encoding UTF32_2143_Marked
Encoding UTF32_2143_Unmarked
Encoding UTF32_3412_Marked
Encoding UTF32_3412_Unmarked
Encoding UTF32_BE_Marked
Encoding UTF32_BE_Unmarked
Encoding UTF32_LE_Marked
Encoding UTF32_LE_Unmarked
Encoding UTF8
Property Detail |
---|
private final String encoding
private final boolean partial
private final boolean supported
Constructor Detail |
---|
public Encoding(String encoding, boolean supported, boolean partial)
public Encoding(String encoding, boolean supported)
Method Detail |
---|
public String encoding()
public boolean partial()
public boolean supported()
Encoding valueOf(String name)
Encoding[] values()
Groovy Documentation