public enum EContentTransferEncoding extends Enum<EContentTransferEncoding> implements IContentTransferEncoding
Three transformations are currently defined: identity, the "quoted- printable" encoding, and the "base64" encoding. The domains are "binary", "8bit" and "7bit".
The Content-Transfer-Encoding values "7bit", "8bit", and "binary" all mean that the identity (i.e. NO) encoding transformation has been performed. As such, they serve simply as indicators of the domain of the body data, and provide useful information about the sort of encoding that might be needed for transmission in a given transport system.
| Enum Constant and Description |
|---|
_7BIT
"7bit data" refers to data that is all represented as relatively short
lines with 998 octets or less between CRLF line separation sequences
[RFC-821].
|
_8BIT
"8bit data" refers to data that is all represented as relatively short
lines with 998 octets or less between CRLF line separation sequences
[RFC-821]), but octets with decimal values greater than 127 may be used.
|
BASE64 |
BINARY
"Binary data" refers to data where any sequence of octets whatsoever is
allowed.
|
QUOTED_PRINTABLE |
| Modifier and Type | Field and Description |
|---|---|
static EContentTransferEncoding |
AS2_DEFAULT
AS2 default CTE is "binary"
|
| Modifier and Type | Method and Description |
|---|---|
static EContentTransferEncoding |
getFromIDCaseInsensitiveOrDefault(String sID,
EContentTransferEncoding eDefault) |
static EContentTransferEncoding |
getFromIDCaseInsensitiveOrNull(String sID) |
String |
getID() |
static EContentTransferEncoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EContentTransferEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcreateCodec, createDecoderpublic static final EContentTransferEncoding _7BIT
public static final EContentTransferEncoding _8BIT
public static final EContentTransferEncoding BINARY
public static final EContentTransferEncoding QUOTED_PRINTABLE
public static final EContentTransferEncoding BASE64
public static final EContentTransferEncoding AS2_DEFAULT
public static EContentTransferEncoding[] values()
for (EContentTransferEncoding c : EContentTransferEncoding.values()) System.out.println(c);
public static EContentTransferEncoding valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Nonnull @Nonempty public String getID()
getID in interface com.helger.commons.id.IHasID<String>@Nullable public static EContentTransferEncoding getFromIDCaseInsensitiveOrNull(@Nullable String sID)
@Nullable public static EContentTransferEncoding getFromIDCaseInsensitiveOrDefault(@Nullable String sID, @Nullable EContentTransferEncoding eDefault)
Copyright © 2014–2019 Philip Helger. All rights reserved.