| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final long | |
| private final long | |
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public long | transferFrom(StreamSourceChannel
the source to read from source, long the number of bytes to be transferred count, ByteBuffer the buffer to copy through. throughBuffer)Overrides org. Implements org. Transfers bytes from the given channel source. |
| public long | transferFrom(FileChannel
the file to read from src, long the position within the file from which the transfer is to begin position, long the number of bytes to be transferred count)Overrides org. Implements org. Transfer bytes into this conduit from the given file. |
| public int | write(ByteBuffer
the buffer containing data to write src)Overrides org. Implements org. Writes a sequence of bytes to this conduit from the given buffer. |
| public long | write(ByteBuffer[]
the buffers containing data to write srcs, int the offset into the buffer array offs, int the number of buffers to write len)Overrides org. Implements org. Writes a sequence of bytes to this conduit from the given buffers. |
| public long | writeFinal(ByteBuffer[]
The buffers from which bytes are to be retrieved srcs, int The offset within the buffer array of the first buffer from
which bytes are to be retrieved; must be non-negative and no
larger than srcs.length offset, int The maximum number of buffers to be accessed; must be
non-negative and no larger than
srcs.length - offset length)Overrides org. Implements org. Writes some data to the conduit, with the same semantics as
|
| public int | writeFinal(ByteBuffer
The data to write src)Overrides org. Implements org. Writes some data to the conduit, with the same semantics as
|
| end | back to summary |
|---|---|
| private final long end | |
| originalResponseLength | back to summary |
|---|---|
| private final long originalResponseLength | |
| start | back to summary |
|---|---|
| private final long start | |
| written | back to summary |
|---|---|
| private long written | |
| RangeStreamSinkConduit | back to summary |
|---|---|
| public RangeStreamSinkConduit(StreamSinkConduit next, long start, long end, long originalResponseLength) | |
| transferFrom | back to summary |
|---|---|
| public long transferFrom(StreamSourceChannel source, long count, ByteBuffer throughBuffer) throws IOException Overrides org. Implements org. Doc from org. Transfers bytes from the given channel source. On entry,
| |
| transferFrom | back to summary |
|---|---|
| public long transferFrom(FileChannel src, long position, long count) throws IOException Overrides org. Implements org. Doc from org. Transfer bytes into this conduit from the given file.
| |
| write | back to summary |
|---|---|
| public int write(ByteBuffer src) throws IOException Overrides org. Implements org. Doc from org. Writes a sequence of bytes to this conduit from the given buffer.
| |
| write | back to summary |
|---|---|
| public long write(ByteBuffer[] srcs, int offs, int len) throws IOException Overrides org. Implements org. Doc from org. Writes a sequence of bytes to this conduit from the given buffers.
| |
| writeFinal | back to summary |
|---|---|
| public long writeFinal(ByteBuffer[] srcs, int offset, int length) throws IOException Overrides org. Implements org. Doc from org. Writes some data to the conduit, with the same semantics as
| |
| writeFinal | back to summary |
|---|---|
| public int writeFinal(ByteBuffer src) throws IOException Overrides org. Implements org. Doc from org. Writes some data to the conduit, with the same semantics as
| |