org.apache.james.mime4j.field
Class ContentTransferEncodingFieldImpl

java.lang.Object
  extended by org.apache.james.mime4j.field.AbstractField
      extended by org.apache.james.mime4j.field.ContentTransferEncodingFieldImpl
All Implemented Interfaces:
ContentTransferEncodingField, ParsedField, Field

public class ContentTransferEncodingFieldImpl
extends AbstractField
implements ContentTransferEncodingField

Represents a Content-Transfer-Encoding field.


Field Summary
static FieldParser<ContentTransferEncodingField> PARSER
           
 
Fields inherited from class org.apache.james.mime4j.field.AbstractField
monitor, rawField
 
Method Summary
 java.lang.String getEncoding()
          Gets the encoding defined in this field.
static java.lang.String getEncoding(ContentTransferEncodingField f)
          Gets the encoding of the given field if.
 
Methods inherited from class org.apache.james.mime4j.field.AbstractField
getBody, getName, 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.ParsedField
getParseException, isValidField
 
Methods inherited from interface org.apache.james.mime4j.stream.Field
getBody, getName, getRaw
 

Field Detail

PARSER

public static final FieldParser<ContentTransferEncodingField> PARSER
Method Detail

getEncoding

public java.lang.String getEncoding()
Description copied from interface: ContentTransferEncodingField
Gets the encoding defined in this field.

Specified by:
getEncoding in interface ContentTransferEncodingField
Returns:
the content ID or null if 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 default 7bit if not set or if f is null.

Returns:
the encoding.


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.