HttpEntity implementations.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | BUFFER_SIZE
Default buffer size. |
| private InputStream | content
|
| private final InputStreamFactory |
| Access | Constructor and Description |
|---|---|
| public | DecompressingEntity(final HttpEntity
the non-null wrapped, final InputStreamFactory HttpEntity to be wrappedfactory to create decompressing stream. inputStreamFactory)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public InputStream | getContent()
Overrides org. Implements org. |
| public Header | getContentEncoding()
Overrides org. Implements org. |
| public long | getContentLength()
Overrides org. Implements org. |
| private InputStream | |
| public void | writeTo(final OutputStream
the output stream to write entity content to outStream)Overrides org. Implements org. |
| BUFFER_SIZE | back to summary |
|---|---|
| private static final int BUFFER_SIZE Default buffer size. | |
| content | back to summary |
|---|---|
| private InputStream content
| |
| inputStreamFactory | back to summary |
|---|---|
| private final InputStreamFactory inputStreamFactory | |
| DecompressingEntity | back to summary |
|---|---|
| public DecompressingEntity(final HttpEntity wrapped, final InputStreamFactory inputStreamFactory) Creates a new
| |
| 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
| |
| getContentEncoding | back to summary |
|---|---|
| public Header getContentEncoding() Overrides org. Implements org. Doc from org. Obtains the Content-Encoding header, if known. This is the header that should be used when sending the entity, or the one that was received with the entity. Wrapping entities that modify the content encoding should adjust this header accordingly. | |
| getContentLength | back to summary |
|---|---|
| public long getContentLength() Overrides org. Implements org. Doc from org. Tells the length of the content, if known.
| |
| getDecompressingStream | back to summary |
|---|---|
| private InputStream getDecompressingStream() throws IOException | |
| 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.
| |