FileDocCategorySizeDatePackage
ContentTransferEncodingField.javaAPI DocAndroid 1.5 API3255Wed May 06 22:42:46 BST 2009org.apache.james.mime4j.field

ContentTransferEncodingField

public class ContentTransferEncodingField extends Field
Represents a Content-Transfer-Encoding field.
version
$Id: ContentTransferEncodingField.java,v 1.2 2004/10/02 12:41:11 ntherning Exp $

Fields Summary
public static final String
ENC_7BIT
The 7bit encoding.
public static final String
ENC_8BIT
The 8bit encoding.
public static final String
ENC_BINARY
The binary encoding.
public static final String
ENC_QUOTED_PRINTABLE
The quoted-printable encoding.
public static final String
ENC_BASE64
The base64 encoding.
private String
encoding
Constructors Summary
protected ContentTransferEncodingField(String name, String body, String raw, String encoding)

    
             
        super(name, body, raw);
        this.encoding = encoding;
    
Methods Summary
public java.lang.StringgetEncoding()
Gets the encoding defined in this field.

return
the encoding or an empty string if not set.

        return encoding;
    
public static java.lang.StringgetEncoding(org.apache.james.mime4j.field.ContentTransferEncodingField f)
Gets the encoding of the given field if. Returns the default 7bit if not set or if f is null.

return
the encoding.

        if (f != null && f.getEncoding().length() != 0) {
            return f.getEncoding();
        }
        return ENC_7BIT;