Package adams.core.net
Enum Base64Type
- java.lang.Object
-
- java.lang.Enum<Base64Type>
-
- adams.core.net.Base64Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Base64Type>
public enum Base64Type extends Enum<Base64Type>
The type of Base64 conversion to apply.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO
BASIC
MIME
URL_FILENAME_SAFE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Base64Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Base64Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO
public static final Base64Type AUTO
-
BASIC
public static final Base64Type BASIC
-
URL_FILENAME_SAFE
public static final Base64Type URL_FILENAME_SAFE
-
MIME
public static final Base64Type MIME
-
-
Method Detail
-
values
public static Base64Type[] 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 (Base64Type c : Base64Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Base64Type 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 nameNullPointerException
- if the argument is null
-
-