| Modifier and Type | Field and Description |
|---|---|
| private final ByteActivityCallback |
| Access | Constructor and Description |
|---|---|
| public | BytesReceivedStreamSourceConduit(StreamSourceConduit
the delegate conduit to set next, ByteActivityCallback callback)Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| 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(ByteBuffer[]
the buffers to fill with data from the conduit dsts, int the offset into the buffer array offs, 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 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, FileChannel the file to write to target)Overrides org. Implements org. Transfers bytes into the given file from this channel. |
| public long | transferTo(long
the number of bytes to be transferred count, ByteBuffer the buffer to copy through. throughBuffer, StreamSinkChannel the destination to write to target)Overrides org. Implements org. Transfers bytes into the given channel target. |
| callback | back to summary |
|---|---|
| private final ByteActivityCallback callback | |
| BytesReceivedStreamSourceConduit | back to summary |
|---|---|
| public BytesReceivedStreamSourceConduit(StreamSourceConduit next, ByteActivityCallback callback) Construct a new instance.
| |
| 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(ByteBuffer[] dsts, int offs, int len) throws IOException Overrides org. Implements org. Doc from org. Read a sequence of bytes from this conduit to the given buffers.
| |
| transferTo | back to summary |
|---|---|
| public long transferTo(long position, long count, 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(long count, ByteBuffer throughBuffer, StreamSinkChannel target) throws IOException Overrides org. Implements org. Doc from org. Transfers bytes into the given channel target. On entry,
| |