org.jboss.netty.handler.codec.base64
枚举 Base64Dialect

java.lang.Object
  继承者 java.lang.Enum<Base64Dialect>
      继承者 org.jboss.netty.handler.codec.base64.Base64Dialect
所有已实现的接口:
java.io.Serializable, java.lang.Comparable<Base64Dialect>

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

Enumeration of supported Base64 dialects.

The internal lookup tables in this class has been derived from Robert Harder's Public Domain Base64 Encoder/Decoder.


枚举常量摘要
ORDERED
          Special "ordered" dialect of Base64 described in RFC1940.
STANDARD
          Standard Base64 encoding as described in the Section 3 of RFC3548.
URL_SAFE
          Base64-like encoding that is URL-safe as described in the Section 4 of RFC3548.
 
方法摘要
static Base64Dialect valueOf(java.lang.String name)
          返回带有指定名称的该类型的枚举常量。
static Base64Dialect[] values()
          按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。
 
从类 java.lang.Enum 继承的方法
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
从类 java.lang.Object 继承的方法
getClass, notify, notifyAll, wait, wait, wait
 

枚举常量详细信息

STANDARD

public static final Base64Dialect STANDARD
Standard Base64 encoding as described in the Section 3 of RFC3548.


URL_SAFE

public static final Base64Dialect URL_SAFE
Base64-like encoding that is URL-safe as described in the Section 4 of RFC3548. It is important to note that data encoded this way is not officially valid Base64, or at the very least should not be called Base64 without also specifying that is was encoded using the URL-safe dialect.


ORDERED

public static final Base64Dialect ORDERED
Special "ordered" dialect of Base64 described in RFC1940.

方法详细信息

values

public static Base64Dialect[] values()
按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。该方法可用于迭代 常量,如下所示:
for (Base64Dialect c : Base64Dialect.values())
    System.out.println(c);


valueOf

public static Base64Dialect valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格。)

参数:
name - 要返回的枚举常量的名称。
返回:
返回带有指定名称的枚举常量
抛出:
如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException