org.jdesktop.html.form
Enum Encoding

java.lang.Object
  extended by java.lang.Enum<Encoding>
      extended by org.jdesktop.html.form.Encoding
All Implemented Interfaces:
Serializable, Comparable<Encoding>

public enum Encoding
extends Enum<Encoding>

Represents valid encoding techniques for use with HTML Forms.


Enum Constant Summary
MultipartFormData
           
UrlEncoded
           
 
Method Summary
 String toString()
          Returns the name of this enum constant, as contained in the declaration.
static Encoding valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Encoding[] 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, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UrlEncoded

public static final Encoding UrlEncoded

MultipartFormData

public static final Encoding MultipartFormData
Method Detail

values

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

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

valueOf

public static Encoding 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

toString

public String toString()
Description copied from class: java.lang.Enum
Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum type should override this method when a more "programmer-friendly" string form exists.

Overrides:
toString in class Enum<Encoding>
Returns:
the name of this enum constant