pl.edu.agh.cast.importer.wizard.utils
Enum SimpleCharset

java.lang.Object
  extended by java.lang.Enum<SimpleCharset>
      extended by pl.edu.agh.cast.importer.wizard.utils.SimpleCharset
All Implemented Interfaces:
Serializable, Comparable<SimpleCharset>

public enum SimpleCharset
extends Enum<SimpleCharset>

Class representing simple charsets and their descriptions that are to be displayed in directly on the FileParamsSelectionPage.

Author:
AGH CAST Team

Enum Constant Summary
ISO_8859_2
          Simple encoding of ISO-8859-2.
UTF_8
          Simple encoding of UTF-8.
WINDOWS_1250
          Simple encoding of windows-1250.
 
Method Summary
 Charset getCharset()
           
 String getDescription()
           
static SimpleCharset valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SimpleCharset[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ISO_8859_2

public static final SimpleCharset ISO_8859_2
Simple encoding of ISO-8859-2.


UTF_8

public static final SimpleCharset UTF_8
Simple encoding of UTF-8.


WINDOWS_1250

public static final SimpleCharset WINDOWS_1250
Simple encoding of windows-1250.

Method Detail

values

public static SimpleCharset[] 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 (SimpleCharset c : SimpleCharset.values())
    System.out.println(c);

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

valueOf

public static SimpleCharset valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getCharset

public Charset getCharset()

getDescription

public String getDescription()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.