| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: the number of bytes (possibly 0) that were actually transferredthe 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)Transfer bytes into this conduit from the given file. |
| public long | Returns: the number of bytes (possibly 0) that were actually transferred, or -1 if the end of input was reachedthe source to read from source, long the number of bytes to be transferred count, ByteBuffer the buffer to copy through. throughBuffer)Transfers bytes from the given channel source. |
| public int | Returns: the number of bytes written, possibly 0the buffer containing data to write src)Writes a sequence of bytes to this conduit from the given buffer. |
| public long | Returns: the number of bytes written, possibly 0the buffers containing data to write srcs, int the offset into the buffer array offs, int the number of buffers to write len)Writes a sequence of bytes to this conduit from the given buffers. |
| public int | Returns: The amount of data that was actually written.The data to write src)Writes some data to the conduit, with the same semantics as
|
| public long | Returns: The amount of data that was actually writtenThe 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)Writes some data to the conduit, with the same semantics as
|
| transferFrom | back to summary |
|---|---|
| public long transferFrom(FileChannel src, long position, long count) throws IOException Transfer bytes into this conduit from the given file.
| |
| transferFrom | back to summary |
|---|---|
| public long transferFrom(StreamSourceChannel source, long count, ByteBuffer throughBuffer) throws IOException Transfers bytes from the given channel source. On entry,
| |
| write | back to summary |
|---|---|
| public int write(ByteBuffer src) throws IOException 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 Writes a sequence of bytes to this conduit from the given buffers.
| |
| writeFinal | back to summary |
|---|---|
| public int writeFinal(ByteBuffer src) throws IOException Writes some data to the conduit, with the same semantics as
| |
| writeFinal | back to summary |
|---|---|
| public long writeFinal(ByteBuffer[] srcs, int offset, int length) throws IOException Writes some data to the conduit, with the same semantics as
| |