| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final ConduitListener |
| Access | Constructor and Description |
|---|---|
| public | FinishableStreamSourceConduit(final StreamSourceConduit next, final ConduitListener<? super FinishableStreamSourceConduit> finishListener)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| 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. |
| 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 | 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. |
| finishCalled | back to summary |
|---|---|
| private boolean finishCalled | |
| finishListener | back to summary |
|---|---|
| private final ConduitListener<? super FinishableStreamSourceConduit> finishListener | |
| FinishableStreamSourceConduit | back to summary |
|---|---|
| public FinishableStreamSourceConduit(final StreamSourceConduit next, final ConduitListener<? super FinishableStreamSourceConduit> finishListener) | |
| exitRead | back to summary |
|---|---|
| private void exitRead(long consumed) Exit a read method.
| |
| 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.
| |
| 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.
| |
| 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,
| |