| Modifier and Type | Field and Description |
|---|---|
| private PooledByteBuffer | |
| private final HttpServerExchange | |
| private boolean | |
| private volatile Inflater | |
| private boolean | |
| private final PooledObject | |
| private PooledByteBuffer | |
| public static final ConduitWrapper |
| Access | Constructor and Description |
|---|---|
| public | |
| public | InflatingStreamSourceConduit(HttpServerExchange exchange, StreamSourceConduit next, ObjectPool<Inflater> inflaterPool)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| private void | |
| public static ObjectPool | |
| public int | read(ByteBuffer
the buffer to fill with data from the conduit dst)Overrides org. Implements org. Read a sequence of bytes from this conduit to the given buffer. |
| public long | read(final ByteBuffer[]
the buffers to fill with data from the conduit dsts, final int the offset into the buffer array offset, final int the number of buffers to fill length)Overrides org. Implements org. Read a sequence of bytes from this conduit to the given buffers. |
| protected void | |
| protected boolean | |
| public static ObjectPool | |
| public void | terminateReads()
Overrides org. Implements org. Indicate that no more data will be read from this conduit. |
| public long | transferTo(final long
the position within the file from which the transfer is to begin position, final long the number of bytes to be transferred count, final FileChannel the file to write to target)Overrides org. Implements org. Transfers bytes into the given file from this channel. |
| public long | transferTo(final long
the number of bytes to be transferred count, final ByteBuffer the buffer to copy through. throughBuffer, final StreamSinkChannel the destination to write to target)Overrides org. Implements org. Transfers bytes into the given channel target. |
| compressed | back to summary |
|---|---|
| private PooledByteBuffer compressed | |
| exchange | back to summary |
|---|---|
| private final HttpServerExchange exchange | |
| headerDone | back to summary |
|---|---|
| private boolean headerDone | |
| inflater | back to summary |
|---|---|
| private volatile Inflater inflater | |
| nextDone | back to summary |
|---|---|
| private boolean nextDone | |
| pooledObject | back to summary |
|---|---|
| private final PooledObject<Inflater> pooledObject | |
| uncompressed | back to summary |
|---|---|
| private PooledByteBuffer uncompressed | |
| WRAPPER | back to summary |
|---|---|
| public static final ConduitWrapper<StreamSourceConduit> WRAPPER | |
| InflatingStreamSourceConduit | back to summary |
|---|---|
| public InflatingStreamSourceConduit(HttpServerExchange exchange, StreamSourceConduit next) | |
| InflatingStreamSourceConduit | back to summary |
|---|---|
| public InflatingStreamSourceConduit(HttpServerExchange exchange, StreamSourceConduit next, ObjectPool<Inflater> inflaterPool) | |
| dataDeflated | back to summary |
|---|---|
| protected void dataDeflated(byte[] data, int off, int len) | |
| done | back to summary |
|---|---|
| private void done() | |
| newInstanceInflaterPool | back to summary |
|---|---|
| public static ObjectPool | |
| read | back to summary |
|---|---|
| public int read(ByteBuffer dst) throws IOException Overrides org. Implements org. Doc from org. Read a sequence of bytes from this conduit to the given buffer.
| |
| read | back to summary |
|---|---|
| public long read(final ByteBuffer[] dsts, final int offset, final int length) throws IOException Overrides org. Implements org. Doc from org. Read a sequence of bytes from this conduit to the given buffers.
| |
| readFooter | back to summary |
|---|---|
| protected void readFooter(ByteBuffer buf) throws IOException | |
| readHeader | back to summary |
|---|---|
| protected boolean readHeader(ByteBuffer byteBuffer) throws IOException | |
| simpleInflaterPool | back to summary |
|---|---|
| public static ObjectPool | |
| terminateReads | back to summary |
|---|---|
| public void terminateReads() throws IOException Overrides org. Implements org. Doc from org. Indicate that no more data will be read from this conduit. If unread data exists, an exception may be thrown.
| |
| transferTo | back to summary |
|---|---|
| public long transferTo(final long position, final long count, final FileChannel target) throws IOException Overrides org. Implements org. Doc from org. Transfers bytes into the given file from this channel.
| |
| transferTo | back to summary |
|---|---|
| public long transferTo(final long count, final ByteBuffer throughBuffer, final StreamSinkChannel target) throws IOException Overrides org. Implements org. Doc from org. Transfers bytes into the given channel target. On entry,
| |