Groovy Documentation

utils.gate.util
Enum Encoding

java.lang.Object
  utils.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

EBCDIC

Encoding EBCDIC


HTML_default

Encoding HTML_default
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.


UTF16_BE_Marked

Encoding UTF16_BE_Marked


UTF16_BE_Unmarked

Encoding UTF16_BE_Unmarked


UTF16_LE_Marked

Encoding UTF16_LE_Marked


UTF16_LE_Unmarked

Encoding UTF16_LE_Unmarked


UTF32_2143_Marked

Encoding UTF32_2143_Marked


UTF32_2143_Unmarked

Encoding UTF32_2143_Unmarked


UTF32_3412_Marked

Encoding UTF32_3412_Marked


UTF32_3412_Unmarked

Encoding UTF32_3412_Unmarked


UTF32_BE_Marked

Encoding UTF32_BE_Marked


UTF32_BE_Unmarked

Encoding UTF32_BE_Unmarked


UTF32_LE_Marked

Encoding UTF32_LE_Marked


UTF32_LE_Unmarked

Encoding UTF32_LE_Unmarked


UTF8

Encoding UTF8


 
Property Detail

encoding

private final String encoding
The encoding: java.nio API canonical name


partial

private final boolean partial
Is support for this encoding partial?


supported

private final boolean supported
Is this Encoding supoprted?


 
Constructor Detail

Encoding

public Encoding(String encoding, boolean supported, boolean partial)
Create an Encoding with the given encoding, supported and warn flags.


Encoding

public Encoding(String encoding, boolean supported)
Create an Encoding with the given encoding and supported flag. Set the partial flag to true if supported is false, otherwise to false


 
Method Detail

encoding

public String encoding()
Return the encoding String of this encoding, the java.nio API canonical name


partial

public boolean partial()
Return the partial flag of this encoding


supported

public boolean supported()
Return the supported flag of this encoding


valueOf

Encoding valueOf(String name)
Returns the enum constant of this type with the specified name.


values

Encoding[] values()
Returns an array containing the constants of this enum type, in the order they are declared.


 

Groovy Documentation