Package org.apache.commons.codec.binary
Enum Base64.DecodeTableFormat
- java.lang.Object
-
- java.lang.Enum<Base64.DecodeTableFormat>
-
- org.apache.commons.codec.binary.Base64.DecodeTableFormat
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Base64.DecodeTableFormat>
- Enclosing class:
- Base64
public static enum Base64.DecodeTableFormat extends java.lang.Enum<Base64.DecodeTableFormat>
Defines the Base64 table format to be used on decoding.By default, the method uses
MIXEDapproach, allowing a seamless handling of bothURL_SAFEandSTANDARDbase64 options.- Since:
- 1.21
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MIXEDRepresents a joint approach, allowing a seamless decoding of both character sets, corresponding to either RFC 2045 Table 1: The Base64 Alphabet or RFC 4648 Table 2: The "URL and Filename safe" Base 64 Alphabet.STANDARDCorresponds to the standard Base64 coding table, as specified in RFC 2045 Table 1: The Base64 Alphabet.URL_SAFECorresponds to the URL-safe Base64 coding table, as specified in RFC 4648 Table 2: The "URL and Filename safe" Base 64 Alphabet.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Base64.DecodeTableFormatvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Base64.DecodeTableFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STANDARD
public static final Base64.DecodeTableFormat STANDARD
Corresponds to the standard Base64 coding table, as specified in RFC 2045 Table 1: The Base64 Alphabet.
-
URL_SAFE
public static final Base64.DecodeTableFormat URL_SAFE
Corresponds to the URL-safe Base64 coding table, as specified in RFC 4648 Table 2: The "URL and Filename safe" Base 64 Alphabet.
-
MIXED
public static final Base64.DecodeTableFormat MIXED
Represents a joint approach, allowing a seamless decoding of both character sets, corresponding to either RFC 2045 Table 1: The Base64 Alphabet or RFC 4648 Table 2: The "URL and Filename safe" Base 64 Alphabet. This decoding table is used by default.
-
-
Method Detail
-
values
public static Base64.DecodeTableFormat[] 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 (Base64.DecodeTableFormat c : Base64.DecodeTableFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Base64.DecodeTableFormat 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 namejava.lang.NullPointerException- if the argument is null
-
-