public interface ContentDescriptor
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getCharset()
The body descriptors character set, defaulted appropriately for the MIME category.
|
long |
getContentLength()
Returns the body descriptors content-length.
|
java.lang.String |
getMediaType()
Gets the defaulted MIME media category for this content.
|
java.lang.String |
getMimeType()
Returns the body descriptors MIME category.
|
java.lang.String |
getSubType()
Gets the defaulted MIME sub category for this content.
|
java.lang.String |
getTransferEncoding()
Returns the body descriptors transfer encoding.
|
java.lang.String getMimeType()
getMediaType(),
getSubType()java.lang.String getMediaType()
TEXT, IMAGE, MULTIPARTTEXT)getMimeType()java.lang.String getSubType()
PLAIN)getMimeType()java.lang.String getCharset()
The body descriptors character set, defaulted appropriately for the MIME category.
For TEXT types, this will be defaulted to us-ascii.
For extension types, when the charset parameter is missing this property will be null.
TEXT types, when unset will
be set to default us-ascii. For extension types, when unset,
null will be returned.java.lang.String getTransferEncoding()
long getContentLength()