Package com.adaptris.core.util
Enum EncodingHelper.Base64Encoding
- java.lang.Object
-
- java.lang.Enum<EncodingHelper.Base64Encoding>
-
- com.adaptris.core.util.EncodingHelper.Base64Encoding
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EncodingHelper.Base64Encoding>
- Enclosing class:
- EncodingHelper
public static enum EncodingHelper.Base64Encoding extends java.lang.Enum<EncodingHelper.Base64Encoding>
Just the supported Base64 styles which are available viaBase64
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.util.Base64.Decoder
decoder()
abstract java.util.Base64.Encoder
encoder()
static EncodingHelper.Base64Encoding
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EncodingHelper.Base64Encoding[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MIME
public static final EncodingHelper.Base64Encoding MIME
Base64 sing the MIME type base64 scheme.
-
URL
public static final EncodingHelper.Base64Encoding URL
Base64 using URL and Filename safe type base64 scheme.
-
BASIC
public static final EncodingHelper.Base64Encoding BASIC
Base64 using the Basic type base64 encoding scheme.
-
-
Method Detail
-
values
public static EncodingHelper.Base64Encoding[] 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 (EncodingHelper.Base64Encoding c : EncodingHelper.Base64Encoding.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EncodingHelper.Base64Encoding 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
-
decoder
public abstract java.util.Base64.Decoder decoder()
-
encoder
public abstract java.util.Base64.Encoder encoder()
-
-