| Modifier and Type | Field and Description |
|---|---|
| private ReadReadyHandler | |
| private final XnioIoThread | |
| private boolean | |
| private boolean | |
| private final XnioWorker |
| Access | Constructor and Description |
|---|---|
| public | EmptyStreamSourceConduit(final XnioIoThread
the read thread for this conduit readThread)Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | awaitReadable()
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)Implements org. Block until this conduit becomes readable again, or until the timeout expires. |
| public XnioIoThread | |
| public XnioWorker | getWorker()
Implements org. Get the XNIO worker associated with this conduit. |
| public boolean | isReadResumed()
Implements org. Determine whether read notifications are currently enabled. |
| public boolean | isReadShutdown()
Implements org. Determine whether reads have been shut down on this conduit. |
| public int | read(final ByteBuffer
the buffer to fill with data from the conduit dst)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)Implements org. Read a sequence of bytes from this conduit to the given buffers. |
| public void | resumeReads()
Implements org. Indicate that the conduit's |
| public void | setReadReadyHandler(final ReadReadyHandler
the filter to receive readiness notifications handler)Implements org. Set the handler which should receive readiness notifications. |
| public void | suspendReads()
Implements org. Indicate that calling the conduit's |
| public void | terminateReads()
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)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)Implements org. Transfers bytes into the given channel target. |
| public void | wakeupReads()
Implements org. Indicate that the conduit's |
| readReadyHandler | back to summary |
|---|---|
| private ReadReadyHandler readReadyHandler | |
| readThread | back to summary |
|---|---|
| private final XnioIoThread readThread | |
| resumed | back to summary |
|---|---|
| private boolean resumed | |
| shutdown | back to summary |
|---|---|
| private boolean shutdown | |
| worker | back to summary |
|---|---|
| private final XnioWorker worker | |
| EmptyStreamSourceConduit | back to summary |
|---|---|
| public EmptyStreamSourceConduit(final XnioIoThread readThread) Construct a new instance.
| |
| awaitReadable | back to summary |
|---|---|
| public void awaitReadable() throws IOException 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 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.
| |
| getReadThread | back to summary |
|---|---|
| public XnioIoThread getReadThread() Implements org. Doc from org. Get the XNIO read thread.
| |
| getWorker | back to summary |
|---|---|
| public XnioWorker getWorker() Implements org. Doc from org. Get the XNIO worker associated with this conduit.
| |
| isReadResumed | back to summary |
|---|---|
| public boolean isReadResumed() Implements org. Doc from org. Determine whether read notifications are currently enabled.
| |
| isReadShutdown | back to summary |
|---|---|
| public boolean isReadShutdown() Implements org. Doc from org. Determine whether reads have been shut down on this conduit.
| |
| read | back to summary |
|---|---|
| public int read(final ByteBuffer dst) throws IOException 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 Implements org. Doc from org. Read a sequence of bytes from this conduit to the given buffers.
| |
| resumeReads | back to summary |
|---|---|
| public void resumeReads() Implements org. Doc from org. Indicate that the conduit's | |
| setReadReadyHandler | back to summary |
|---|---|
| public void setReadReadyHandler(final ReadReadyHandler handler) 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.
| |
| suspendReads | back to summary |
|---|---|
| public void suspendReads() Implements org. Doc from org. Indicate that calling the conduit's | |
| terminateReads | back to summary |
|---|---|
| public void terminateReads() throws IOException 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 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 Implements org. Doc from org. Transfers bytes into the given channel target. On entry,
| |
| wakeupReads | back to summary |
|---|---|
| public void wakeupReads() Implements org. Doc from org. Indicate that the conduit's | |