cz.zcu.fav.kiv.editor.controller.options
Enum EncodingEnum

java.lang.Object
  extended by java.lang.Enum<EncodingEnum>
      extended by cz.zcu.fav.kiv.editor.controller.options.EncodingEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EncodingEnum>

public enum EncodingEnum
extends java.lang.Enum<EncodingEnum>

The EncodingEnum class is the enumerated list of document encodings.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Enum Constant Summary
ASCII
           
ISO88591
           
ISO88592
           
UTF16BE
           
UTF16LE
           
UTF8
           
WIN1250
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UTF8

public static final EncodingEnum UTF8

UTF16BE

public static final EncodingEnum UTF16BE

UTF16LE

public static final EncodingEnum UTF16LE

ASCII

public static final EncodingEnum ASCII

WIN1250

public static final EncodingEnum WIN1250

ISO88591

public static final EncodingEnum ISO88591

ISO88592

public static final EncodingEnum ISO88592
Method Detail

values

public static EncodingEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (EncodingEnum c : EncodingEnum.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EncodingEnum valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getKey

public java.lang.String getKey()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<EncodingEnum>

getEncoding

public static EncodingEnum getEncoding(java.lang.String encodKey)
Returns EncodingEnum object for corresponding key.

Parameters:
encodKey - the key of the encoding.
Returns:
the encoding for the input key.

containsEncoding

public static boolean containsEncoding(java.lang.String encodKey)
Specifies if the input encoding is among predefined encodings EncodingEnum.

Parameters:
encodKey - the key of the encoding.
Returns:
true if the input encoding is present in the predefined encodings EncodingEnum.