Package org.apache.james.mime4j.field
Class ContentTransferEncodingFieldImpl
- java.lang.Object
-
- org.apache.james.mime4j.field.AbstractField
-
- org.apache.james.mime4j.field.ContentTransferEncodingFieldImpl
-
- All Implemented Interfaces:
ContentTransferEncodingField,ParsedField,Field
public class ContentTransferEncodingFieldImpl extends AbstractField implements ContentTransferEncodingField
Represents aContent-Transfer-Encodingfield.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringencodingprivate booleanparsedstatic FieldParser<ContentTransferEncodingField>PARSER-
Fields inherited from class org.apache.james.mime4j.field.AbstractField
monitor, rawField
-
-
Constructor Summary
Constructors Constructor Description ContentTransferEncodingFieldImpl(Field rawField, DecodeMonitor monitor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEncoding()Gets the encoding defined in this field.static java.lang.StringgetEncoding(ContentTransferEncodingField f)Gets the encoding of the given field if.private voidparse()-
Methods inherited from class org.apache.james.mime4j.field.AbstractField
getBody, getName, getNameLowerCase, getParseException, getRaw, getRawField, isValidField, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.james.mime4j.dom.field.ContentTransferEncodingField
bodyDescriptionField
-
Methods inherited from interface org.apache.james.mime4j.stream.Field
getBody, getName, getNameLowerCase, getRaw
-
Methods inherited from interface org.apache.james.mime4j.dom.field.ParsedField
getParseException, isValidField
-
-
-
-
Field Detail
-
parsed
private boolean parsed
-
encoding
private java.lang.String encoding
-
PARSER
public static final FieldParser<ContentTransferEncodingField> PARSER
-
-
Constructor Detail
-
ContentTransferEncodingFieldImpl
ContentTransferEncodingFieldImpl(Field rawField, DecodeMonitor monitor)
-
-
Method Detail
-
parse
private void parse()
-
getEncoding
public java.lang.String getEncoding()
Description copied from interface:ContentTransferEncodingFieldGets the encoding defined in this field.- Specified by:
getEncodingin interfaceContentTransferEncodingField- Returns:
- the content ID or
nullif not set. - See Also:
ContentTransferEncodingField.getEncoding()
-
getEncoding
public static java.lang.String getEncoding(ContentTransferEncodingField f)
Gets the encoding of the given field if. Returns the default7bitif not set or iffisnull.- Returns:
- the encoding.
-
-