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)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public InputStream | getContent()
Overrides org. Implements org. |
| public String | 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) Constructs 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.
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
| |
| getContentEncoding | back to summary |
|---|---|
| public String getContentEncoding() Overrides org. Implements org. Doc from org. Returns content encoding of the entity, if known.
| |
| getContentLength | back to summary |
|---|---|
| public long getContentLength() Overrides org. Implements org. Doc from org. Returns length of the entity, 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.
| |