| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: Character set, which has been parsed from the content-type definition. Not null forTEXT types, when unset will
be set to default us-ascii. For other types, when unset,
null will be returned.The body descriptors character set, defaulted appropriately for the MIME type. |
| public long | Returns: Content length, if known, or -1, to indicate the absence of a content-length header.Returns the body descriptors content-length. |
| public String | Returns: the MIME media type when content-type specified, otherwise the correct default (TEXT)Gets the defaulted MIME media type for this content. |
| public String | Returns: The MIME type, which has been parsed from the content-type definition. Must not be null, but "text/plain", if no content-type was specified.Returns the body descriptors MIME type. |
| public String | Returns: the MIME media type when content-type is specified, otherwise the correct default (PLAIN)Gets the defaulted MIME sub type for this content. |
| getCharset | back to summary |
|---|---|
| public String getCharset() The body descriptors character set, defaulted appropriately for the MIME type.
For
| |
| getContentLength | back to summary |
|---|---|
| public long getContentLength() Returns the body descriptors content-length.
| |
| getMediaType | back to summary |
|---|---|
| public String getMediaType() Gets the defaulted MIME media type for this content.
For example
| |
| getMimeType | back to summary |
|---|---|
| public String getMimeType() Returns the body descriptors MIME type.
| |
| getSubType | back to summary |
|---|---|
| public String getSubType() Gets the defaulted MIME sub type for this content.
| |