| 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. |
| Modifier and Type | Method and Description |
|---|---|
| public InputStream | getContent()
Overrides org. Implements org. |
| public long | getContentLength()
Overrides org. Implements org. |
| public boolean | Returns: falseOverrides org. Implements org. |
| public boolean | Returns: trueOverrides org. Implements org. |
| public boolean | isStreaming()
Overrides org. Implements org. |
| public void | writeTo(final OutputStream
the output stream to write entity content to outStream)Overrides org. Implements org. |
| 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.
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. Tells the length of the content, 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.
| |