Package jakarta.mail.util
Enum StreamProvider.EncoderTypes
- java.lang.Object
-
- java.lang.Enum<StreamProvider.EncoderTypes>
-
- jakarta.mail.util.StreamProvider.EncoderTypes
-
- All Implemented Interfaces:
Serializable
,Comparable<StreamProvider.EncoderTypes>
- Enclosing interface:
- StreamProvider
public static enum StreamProvider.EncoderTypes extends Enum<StreamProvider.EncoderTypes>
Enumeration with the different encoder types supported by the Mail API.- Since:
- JavaMail 2.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description B_ENCODER
BASE_64
BINARY_ENCODER
BIT7_ENCODER
BIT8_ENCODER
Q_ENCODER
QUOTED_PRINTABLE_ENCODER
UU_ENCODER
X_UU_ENCODER
X_UUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEncoder()
static StreamProvider.EncoderTypes
valueOf(String name)
Returns the enum constant of this type with the specified name.static StreamProvider.EncoderTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BASE_64
public static final StreamProvider.EncoderTypes BASE_64
-
B_ENCODER
public static final StreamProvider.EncoderTypes B_ENCODER
-
Q_ENCODER
public static final StreamProvider.EncoderTypes Q_ENCODER
-
BINARY_ENCODER
public static final StreamProvider.EncoderTypes BINARY_ENCODER
-
BIT7_ENCODER
public static final StreamProvider.EncoderTypes BIT7_ENCODER
-
BIT8_ENCODER
public static final StreamProvider.EncoderTypes BIT8_ENCODER
-
QUOTED_PRINTABLE_ENCODER
public static final StreamProvider.EncoderTypes QUOTED_PRINTABLE_ENCODER
-
UU_ENCODER
public static final StreamProvider.EncoderTypes UU_ENCODER
-
X_UU_ENCODER
public static final StreamProvider.EncoderTypes X_UU_ENCODER
-
X_UUE
public static final StreamProvider.EncoderTypes X_UUE
-
-
Method Detail
-
values
public static StreamProvider.EncoderTypes[] 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 (StreamProvider.EncoderTypes c : StreamProvider.EncoderTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StreamProvider.EncoderTypes 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
-
getEncoder
public String getEncoder()
-
-