| Access | Constructor and Description |
|---|---|
| public | SynchronizedStreamSourceConduit(final StreamSourceConduit
the next conduit in the chain next)Construct a new instance. |
| public | SynchronizedStreamSourceConduit(final StreamSourceConduit
the next conduit in the chain next, final Object the lock object to use lock)Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public int | read(final ByteBuffer
the buffer to fill with data from the conduit dst)Implements org. Read a sequence of bytes from this conduit to the given buffer. |
| public long | read(final ByteBuffer[]
the buffers to fill with data from the conduit dsts, final int the offset into the buffer array offs, final int the number of buffers to fill len)Implements org. Read a sequence of bytes from this conduit to the given buffers. |
| 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)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)Implements org. Transfers bytes into the given channel target. |
| SynchronizedStreamSourceConduit | back to summary |
|---|---|
| public SynchronizedStreamSourceConduit(final StreamSourceConduit next) Construct a new instance. A new lock object is created.
| |
| SynchronizedStreamSourceConduit | back to summary |
|---|---|
| public SynchronizedStreamSourceConduit(final StreamSourceConduit next, final Object lock) Construct a new instance.
| |
| read | back to summary |
|---|---|
| public int read(final ByteBuffer dst) throws IOException Implements org. Doc from org. Read a sequence of bytes from this conduit to the given buffer.
| |
| read | back to summary |
|---|---|
| public long read(final ByteBuffer[] dsts, final int offs, final int len) throws IOException Implements org. Doc from org. Read a sequence of bytes from this conduit to the given buffers.
| |
| transferTo | back to summary |
|---|---|
| public long transferTo(final long position, final long count, final FileChannel target) throws IOException 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 Implements org. Doc from org. Transfers bytes into the given channel target. On entry,
| |