java.lang.Object
com.lutris.mime.MimeHeader
com.lutris.mime.ContentHeader
- public class ContentHeader
- extends MimeHeader
Parses and represents Mime header fields that have the form of the
Content-Type header as defined in RFC2045 Section 5.1
Page 11. The format of these headers is informally:
: [ ; ... ]
Examples:
Content-Type: application/octet-stream
Content-Type: multipart/form-data; boundary="---123456"
Content-Disposition: form-data; name=upload; filename="/tmp/myfile"
In addition to the actual header syntax, RFC822 header comments are
allowed. Such comments consist of text enclosed in parentheses.
| Fields inherited from class com.lutris.mime.MimeHeader |
|
|
Constructor Summary |
ContentHeader(MimeHeader hdr)
Constructs a new ContentTypeHeader object from an existing
MimeHeader object. |
ContentHeader(java.lang.String headerLine)
Constructs a new ContentTypeHeader object from an unparsed Mime
Content-Type header line. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentHeader
public ContentHeader(java.lang.String headerLine)
- Constructs a new ContentTypeHeader object from an unparsed Mime
Content-Type header line. The header line should
include the entire line as read from the input source.
ContentHeader
public ContentHeader(MimeHeader hdr)
- Constructs a new ContentTypeHeader object from an existing
MimeHeader object.