public interface ContentBody
Description:
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCharset()
The body descriptors character set, defaulted appropriately for the MIME
type.
|
long |
getContentLength()
Returns the body descriptors content-length.
|
String |
getFilename() |
MimeType |
getMimeType()
Returns the body descriptors MIME type.
|
String |
getTransferEncoding()
Returns the body descriptors transfer encoding.
|
void |
writeTo(OutputStream out) |
MimeType 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.String getTransferEncoding()
long getContentLength()
String getFilename()
void writeTo(OutputStream out) throws IOException
IOExceptionCopyright © 2019. All rights reserved.