@NotThreadSafe public class ContentBufferEntity extends BasicHttpEntity
ContentInputBuffer.chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE| 构造器和说明 |
|---|
ContentBufferEntity(HttpEntity entity,
ContentInputBuffer buffer)
Creates new instance of ContentBufferEntity.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Header |
getContentEncoding()
Obtains the Content-Encoding header.
|
long |
getContentLength()
Tells the length of the content, if known.
|
Header |
getContentType()
Obtains the Content-Type header.
|
boolean |
isChunked()
Obtains the 'chunked' flag.
|
getContent, isRepeatable, isStreaming, setContent, setContentLength, writeToconsumeContent, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentTypepublic ContentBufferEntity(HttpEntity entity, ContentInputBuffer buffer)
entity - the original entity.buffer - the content buffer.public boolean isChunked()
AbstractHttpEntitychunked attribute.isChunked 在接口中 HttpEntityisChunked 在类中 AbstractHttpEntitypublic long getContentLength()
HttpEntitygetContentLength 在接口中 HttpEntitygetContentLength 在类中 BasicHttpEntityLong.MAX_VALUE,
a negative number is returned.public Header getContentType()
AbstractHttpEntitycontentType attribute.getContentType 在接口中 HttpEntitygetContentType 在类中 AbstractHttpEntitynullpublic Header getContentEncoding()
AbstractHttpEntitycontentEncoding attribute.getContentEncoding 在接口中 HttpEntitygetContentEncoding 在类中 AbstractHttpEntitynull