| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the number of bytes (possibly 0) that were actually transferred, or -1 if the end of input was reached or this conduit'sterminateReads() method was previously calledthe buffer to fill with data from the conduit dst)Read a sequence of bytes from this conduit to the given buffer. |
| public long | Returns: the number of bytes (possibly 0) that were actually transferred, or -1 if the end of input was reached or this conduit'sterminateReads() method was previously calledthe 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)Read a sequence of bytes from this conduit to the given buffers. |
| public long | Returns: the number of bytes (possibly 0) that were actually transferredthe 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)Transfers bytes into the given file from this channel. |
| public long | Returns: the number of bytes (possibly 0) that were actually transferred, or -1 if the end of input was reachedthe number of bytes to be transferred count, ByteBuffer the buffer to copy through. throughBuffer, StreamSinkChannel the destination to write to target)Transfers bytes into the given channel target. |
| read | back to summary |
|---|---|
| public int read(ByteBuffer dst) throws IOException 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 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 Transfers bytes into the given file from this channel.
| |
| transferTo | back to summary |
|---|---|
| public long transferTo(long count, ByteBuffer throughBuffer, StreamSinkChannel target) throws IOException Transfers bytes into the given channel target. On entry,
| |