public abstract class AbstractContentBody extends Object implements ContentBody
Description:
| 构造器和说明 |
|---|
AbstractContentBody(ContentType contentType) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCharset()
The body descriptors character set, defaulted appropriately for the MIME
type.
|
ContentType |
getContentType() |
MimeType |
getMimeType()
Returns the body descriptors MIME type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentLength, getFilename, getTransferEncoding, writeTopublic AbstractContentBody(ContentType contentType)
public ContentType getContentType()
public MimeType getMimeType()
ContentBodygetMimeType 在接口中 ContentBodypublic String getCharset()
ContentBodyThe 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.
getCharset 在接口中 ContentBodyTEXT types, when unset will be
set to default us-ascii. For other types, when unset,
null will be returned.Copyright © 2019. All rights reserved.