public interface ContentDescriptor
Modifier and Type | Method and Description |
---|---|
String |
getCharset()
The body descriptors character set, defaulted appropriately for the MIME type.
|
long |
getContentLength()
Returns the body descriptors content-length.
|
String |
getMediaType()
Gets the defaulted MIME media type for this content.
|
String |
getMimeType()
Returns the body descriptors MIME type.
|
String |
getSubType()
Gets the defaulted MIME sub type for this content.
|
String getMimeType()
getMediaType()
,
getSubType()
String getMediaType()
TEXT
, IMAGE
, MULTIPART
TEXT
)getMimeType()
String getSubType()
PLAIN
)getMimeType()
String getCharset()
The body descriptors character set, defaulted appropriately for the MIME type.
For TEXT
types, this will be defaulted to us-ascii
.
For other types, when the charset parameter is missing this property will be null.
TEXT
types, when unset will
be set to default us-ascii
. For other types, when unset,
null will be returned.long getContentLength()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.