Top Description Fields Constructors Methods
io.netty.handler.codec.base64

public final Enum Base64Dialect

extends Enum<Base64Dialect>
Class Inheritance

Enumeration of supported Base64 dialects.

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

Field Summary

Modifier and TypeField and Description
pack-priv final byte[]
pack-priv final boolean
pack-priv final byte[]
public static final Base64Dialect
ORDERED

Special "ordered" dialect of Base64 described in RFC1940.

public static final Base64Dialect
STANDARD

Standard Base64 encoding as described in the Section 3 of RFC3548.

public static final Base64Dialect
URL_SAFE

Base64-like encoding that is URL-safe as described in the Section 4 of RFC3548.

Constructor Summary

AccessConstructor and Description
private
Base64Dialect(byte[] alphabet, byte[] decodabet, boolean breakLinesByDefault)

Method Summary

Modifier and TypeMethod and Description
public static Base64Dialect
public static Base64Dialect[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

alphabetback to summary
pack-priv final byte[] alphabet
breakLinesByDefaultback to summary
pack-priv final boolean breakLinesByDefault
decodabetback to summary
pack-priv final byte[] decodabet
ORDEREDback to summary
public static final Base64Dialect ORDERED

Special "ordered" dialect of Base64 described in RFC1940.

STANDARDback to summary
public static final Base64Dialect STANDARD

Standard Base64 encoding as described in the Section 3 of RFC3548.

URL_SAFEback to summary
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.

Constructor Detail

Base64Dialectback to summary
private Base64Dialect(byte[] alphabet, byte[] decodabet, boolean breakLinesByDefault)

Method Detail

valueOfback to summary
public static Base64Dialect valueOf(String name)
valuesback to summary
public static Base64Dialect[] values()