Package | Description |
---|---|
org.apache.james.mime4j.field |
Modifier and Type | Method and Description |
---|---|
static ContentTypeField |
Fields.contentType(java.lang.String contentType)
Creates a Content-Type field from the specified raw field value.
|
static ContentTypeField |
Fields.contentType(java.lang.String mimeType,
java.util.Map<java.lang.String,java.lang.String> parameters)
Creates a Content-Type field from the specified MIME type and
parameters.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
ContentTypeField.getCharset(ContentTypeField f)
Gets the value of the
charset parameter if set for the
given field. |
static java.lang.String |
ContentTypeField.getMimeType(ContentTypeField child,
ContentTypeField parent)
Gets the MIME type defined in the child's Content-Type field or derives a
MIME type from the parent if child is
null or hasn't got a
MIME type value set. |
Copyright © 2004-2012. All Rights Reserved.