| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| private long | |
| public boolean | flush()
Overrides org. Implements org. Flush out any unwritten, buffered output. |
| public boolean | isWriteResumed()
Overrides org. Implements org. Determine whether write notifications are currently enabled. |
| public void | resumeWrites()
Overrides org. Implements org. Indicate that the conduit's |
| public void | suspendWrites()
Overrides org. Implements org. Indicate that calling the conduit's |
| public long | transferFrom(final FileChannel
the file to read from src, 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)Overrides org. Implements org. Transfer bytes into this conduit from the given file. |
| public long | transferFrom(final StreamSourceChannel
the source to read from source, final long the number of bytes to be transferred count, final ByteBuffer the buffer to copy through. throughBuffer)Overrides org. Implements org. Transfers bytes from the given channel source. |
| public void | wakeupWrites()
Overrides org. Implements org. Indicate that the conduit's |
| public int | write(final 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(final ByteBuffer[]
the buffers containing data to write srcs, final int the offset into the buffer array offs, final int the number of buffers to write len)Overrides org. Implements org. Writes a sequence of bytes to this conduit from the given buffers. |
| private int | |
| private long | |
| public int | writeFinal(ByteBuffer
The data to write src)Overrides org. Implements org. Writes some data to the conduit, with the same semantics as
|
| 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
|
| resumed | back to summary |
|---|---|
| private boolean resumed | |
| BlockingStreamSinkConduit | back to summary |
|---|---|
| public BlockingStreamSinkConduit(final StreamSinkConduit next) | |
| doWrite | back to summary |
|---|---|
| private int doWrite(ByteBuffer src, boolean writeFinal) throws IOException | |
| doWrite | back to summary |
|---|---|
| private long doWrite(ByteBuffer[] srcs, final int offs, final int len, boolean writeFinal) throws IOException | |
| flush | back to summary |
|---|---|
| public boolean flush() throws IOException Overrides org. Implements org. Doc from org. Flush out any unwritten, buffered output.
| |
| isWriteResumed | back to summary |
|---|---|
| public boolean isWriteResumed() Overrides org. Implements org. Doc from org. Determine whether write notifications are currently enabled.
| |
| resumeWrites | back to summary |
|---|---|
| public void resumeWrites() Overrides org. Implements org. Doc from org. Indicate that the conduit's | |
| suspendWrites | back to summary |
|---|---|
| public void suspendWrites() Overrides org. Implements org. Doc from org. Indicate that calling the conduit's | |
| transferFrom | back to summary |
|---|---|
| public long transferFrom(final FileChannel src, final long position, final long count) throws IOException Overrides org. Implements org. Doc from org. Transfer bytes into this conduit from the given file.
| |
| transferFrom | back to summary |
|---|---|
| public long transferFrom(final StreamSourceChannel source, final long count, final ByteBuffer throughBuffer) throws IOException Overrides org. Implements org. Doc from org. Transfers bytes from the given channel source. On entry,
| |
| wakeupWrites | back to summary |
|---|---|
| public void wakeupWrites() Overrides org. Implements org. Doc from org. Indicate that the conduit's | |
| write | back to summary |
|---|---|
| public int write(final 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(final ByteBuffer[] srcs, final int offs, final int len) throws IOException Overrides org. Implements org. Doc from org. Writes a sequence of bytes to this conduit from the given buffers.
| |
| write | back to summary |
|---|---|
| private int write(final ByteBuffer src, final boolean writeFinal) throws IOException | |
| write | back to summary |
|---|---|
| private long write(final ByteBuffer[] srcs, final int offs, final int len, final boolean writeFinal) throws IOException | |
| 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
| |
| 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
| |