Apache JAMES Mime4j 0.6-redhat-2

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
 String getEncoding()
          Gets the encoding defined in this field.
static 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 String getEncoding()
Gets the encoding defined in this field.

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

getEncoding

public static 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.

Apache JAMES Mime4j 0.6-redhat-2

Copyright © 2004-2012 JBoss by Red Hat. All Rights Reserved.