| Modifier and Type | Field and Description |
|---|---|
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public | BufferedHttpEntity(final HttpEntity
the entity to wrap, not null entity)Creates a new buffered entity wrapper. |
| buffer | back to summary |
|---|---|
| private final byte[] buffer | |
| BufferedHttpEntity | back to summary |
|---|---|
| public BufferedHttpEntity(final HttpEntity entity) throws IOException Creates a new buffered entity wrapper.
| |
| getContent | back to summary |
|---|---|
| public InputStream getContent() throws IOException Overrides org. Implements org. Doc from org. Returns a content stream of the entity.
If this entity belongs to an incoming HTTP message, calling
Important Note Please note all entity implementations must ensure that
all allocated resources are properly deallocated after
the
| |
| getContentLength | back to summary |
|---|---|
| public long getContentLength() Overrides org. Implements org. Doc from org. Returns length of the entity, if known.
| |
| isChunked | back to summary |
|---|---|
| public boolean isChunked() Overrides org. Implements org. Tells that this entity does not have to be chunked.
| |
| isRepeatable | back to summary |
|---|---|
| public boolean isRepeatable() Overrides org. Implements org. Tells that this entity is repeatable.
| |
| isStreaming | back to summary |
|---|---|
| public boolean isStreaming() Overrides org. Implements org. Doc from org. Tells whether this entity depends on an underlying stream.
Streamed entities that read data directly from the socket should
return
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(final OutputStream outStream) throws IOException Overrides org. Implements org. Doc from org. Writes the entity content out to the output stream. Important Note Please note all entity implementations must ensure that all allocated resources are properly deallocated when this method returns.
| |