| Modifier and Type | Field and Description |
|---|---|
| private final ConduitListener | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | FinishableStreamSinkConduit(final StreamSinkConduit delegate, final ConduitListener<? super FinishableStreamSinkConduit> finishListener)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | flush()
Overrides org. Implements org. Flush out any unwritten, buffered output. |
| public void | terminateWrites()
Overrides org. Implements org. Signal that no more write data is forthcoming. |
| public void | truncateWrites()
Overrides org. Implements org. Terminate writes and discard any outstanding write data. |
| 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
|
| finishListener | back to summary |
|---|---|
| private final ConduitListener<? super FinishableStreamSinkConduit> finishListener | |
| shutdownState | back to summary |
|---|---|
| private int shutdownState | |
| FinishableStreamSinkConduit | back to summary |
|---|---|
| public FinishableStreamSinkConduit(final StreamSinkConduit delegate, final ConduitListener<? super FinishableStreamSinkConduit> finishListener) | |
| flush | back to summary |
|---|---|
| public boolean flush() throws IOException Overrides org. Implements org. Doc from org. Flush out any unwritten, buffered output.
| |
| terminateWrites | back to summary |
|---|---|
| public void terminateWrites() throws IOException Overrides org. Implements org. Doc from org. Signal that no more write data is forthcoming. The conduit must be | |
| truncateWrites | back to summary |
|---|---|
| public void truncateWrites() throws IOException Overrides org. Implements org. Doc from org. Terminate writes and discard any outstanding write data. The conduit is terminated and flushed regardless of the outcome of this method.
| |
| 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
| |