org.apache.james.mime4j.field
Class ContentTransferEncodingField

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

public class ContentTransferEncodingField
extends AbstractField

Represents a Content-Transfer-Encoding field.


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, getParser, getRaw, isValidField, parse, parse, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getEncoding

public java.lang.String getEncoding()
Gets the encoding defined in this field.

Returns:
the encoding or an empty string if not set.

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-2009 The Apache Software Foundation. All Rights Reserved.