| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private StreamSourceConduit | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | PushBackStreamSourceConduit(final StreamSourceConduit
the delegate conduit to set next)Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | awaitReadable()
Overrides org. Implements org. Block until this channel becomes readable again. |
| public void | awaitReadable(final long
the time to wait time, final TimeUnit the time unit timeUnit)Overrides org. Implements org. Block until this conduit becomes readable again, or until the timeout expires. |
| public void | pushBack(Pooled<ByteBuffer>
the buffer to push back pooledBuffer)
References Deprecated
Pooled is deprecated or references (maybe indirectly) at least one deprecated element.
Push a buffer back to the head of the stream. |
| public int | read(final 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 offs, final int the number of buffers to fill len)Overrides org. Implements org. Read a sequence of bytes from this conduit to the given buffers. |
| public void | resumeReads()
Overrides org. Implements org. Indicate that the conduit's |
| public void | setReadReadyHandler(final ReadReadyHandler
the filter to receive readiness notifications handler)Overrides org. Implements org. Set the handler which should receive readiness notifications. |
| 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. |
| current | back to summary |
|---|---|
| private StreamSourceConduit current | |
| shutdown | back to summary |
|---|---|
| private boolean shutdown | |
| PushBackStreamSourceConduit | back to summary |
|---|---|
| public PushBackStreamSourceConduit(final StreamSourceConduit next) Construct a new instance.
| |
| awaitReadable | back to summary |
|---|---|
| public void awaitReadable() throws IOException Overrides org. Implements org. Doc from org. Block until this channel becomes readable again. This method may return spuriously before the channel becomes readable.
| |
| awaitReadable | back to summary |
|---|---|
| public void awaitReadable(final long time, final TimeUnit timeUnit) throws IOException Overrides org. Implements org. Doc from org. Block until this conduit becomes readable again, or until the timeout expires. This method may return spuriously before the conduit becomes readable or the timeout expires.
| |
| pushBack | back to summary |
|---|---|
| public void pushBack(Pooled<ByteBuffer> pooledBuffer)
References Deprecated
See corresponding docs for further information. Push a buffer back to the head of the stream. Once the buffer data is consumed, it will be released back to its original pool (if any).
| |
| read | back to summary |
|---|---|
| public int read(final 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 offs, final int len) throws IOException Overrides org. Implements org. Doc from org. Read a sequence of bytes from this conduit to the given buffers.
| |
| resumeReads | back to summary |
|---|---|
| public void resumeReads() Overrides org. Implements org. Doc from org. Indicate that the conduit's | |
| setReadReadyHandler | back to summary |
|---|---|
| public void setReadReadyHandler(final ReadReadyHandler handler) Overrides org. Implements org. Doc from org. Set the handler which should receive readiness notifications. A filter may pass this invocation on to the filter it wraps, or it may substitute itself.
| |
| 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,
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Pooled | pooledBuffer
References Deprecated
Pooled is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Access | Constructor and Description |
|---|---|
| pack-priv | BufferConduit(final StreamSourceConduit next, final Pooled<ByteBuffer> pooledBuffer)
References Deprecated
Pooled is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | awaitReadable(final long
the time to wait time, final TimeUnit the time unit timeUnit)Overrides org. Implements org. Block until this conduit becomes readable again, or until the timeout expires. |
| public void | awaitReadable()
Overrides org. Implements org. Block until this channel becomes readable again. |
| private final void | |
| public int | read(final 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 offs, final int the number of buffers to fill len)Overrides org. Implements org. Read a sequence of bytes from this conduit to the given buffers. |
| public void | resumeReads()
Overrides org. Implements org. Indicate that the conduit's |
| public void | terminateReads()
Overrides org. Implements org. Indicate that no more data will be read from this conduit. |
| public long | transferTo(long
the position within the file from which the transfer is to begin position, 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. |
| pooledBuffer | back to summary |
|---|---|
| private final Pooled<ByteBuffer> pooledBuffer
References Deprecated
See corresponding docs for further information. | |
| BufferConduit | back to summary |
|---|---|
| pack-priv BufferConduit(final StreamSourceConduit next, final Pooled<ByteBuffer> pooledBuffer)
References Deprecated
See corresponding docs for further information. | |
| awaitReadable | back to summary |
|---|---|
| public void awaitReadable(final long time, final TimeUnit timeUnit) throws IOException Overrides org. Implements org. Doc from org. Block until this conduit becomes readable again, or until the timeout expires. This method may return spuriously before the conduit becomes readable or the timeout expires.
| |
| awaitReadable | back to summary |
|---|---|
| public void awaitReadable() throws IOException Overrides org. Implements org. Doc from org. Block until this channel becomes readable again. This method may return spuriously before the channel becomes readable.
| |
| moveToNext | back to summary |
|---|---|
| private final void moveToNext() | |
| read | back to summary |
|---|---|
| public int read(final 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 offs, final int len) throws IOException Overrides org. Implements org. Doc from org. Read a sequence of bytes from this conduit to the given buffers.
| |
| resumeReads | back to summary |
|---|---|
| public void resumeReads() Overrides org. Implements org. Doc from org. Indicate that the conduit's | |
| 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(long position, 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,
| |