org.xnio.conduits.Conduit
, org.xnio.conduits.SinkConduit
, org.xnio.conduits.StreamSinkConduit
public final class FinishableStreamSinkConduit
extends org.xnio.conduits.AbstractStreamSinkConduit<org.xnio.conduits.StreamSinkConduit>
Constructor | Description |
---|---|
FinishableStreamSinkConduit(org.xnio.conduits.StreamSinkConduit delegate,
ConduitListener<? super FinishableStreamSinkConduit> finishListener) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
flush() |
|
void |
terminateWrites() |
|
void |
truncateWrites() |
|
int |
writeFinal(java.nio.ByteBuffer src) |
|
long |
writeFinal(java.nio.ByteBuffer[] srcs,
int offset,
int length) |
awaitWritable, awaitWritable, getWriteThread, isWriteResumed, isWriteShutdown, resumeWrites, setWriteReadyHandler, suspendWrites, wakeupWrites
transferFrom, transferFrom, write, write
public FinishableStreamSinkConduit(org.xnio.conduits.StreamSinkConduit delegate, ConduitListener<? super FinishableStreamSinkConduit> finishListener)
public int writeFinal(java.nio.ByteBuffer src) throws java.io.IOException
writeFinal
in interface org.xnio.conduits.StreamSinkConduit
writeFinal
in class org.xnio.conduits.AbstractStreamSinkConduit<org.xnio.conduits.StreamSinkConduit>
java.io.IOException
public long writeFinal(java.nio.ByteBuffer[] srcs, int offset, int length) throws java.io.IOException
writeFinal
in interface org.xnio.conduits.StreamSinkConduit
writeFinal
in class org.xnio.conduits.AbstractStreamSinkConduit<org.xnio.conduits.StreamSinkConduit>
java.io.IOException
public void terminateWrites() throws java.io.IOException
terminateWrites
in interface org.xnio.conduits.SinkConduit
terminateWrites
in class org.xnio.conduits.AbstractSinkConduit<org.xnio.conduits.StreamSinkConduit>
java.io.IOException
public void truncateWrites() throws java.io.IOException
truncateWrites
in interface org.xnio.conduits.SinkConduit
truncateWrites
in class org.xnio.conduits.AbstractSinkConduit<org.xnio.conduits.StreamSinkConduit>
java.io.IOException
public boolean flush() throws java.io.IOException
flush
in interface org.xnio.conduits.SinkConduit
flush
in class org.xnio.conduits.AbstractSinkConduit<org.xnio.conduits.StreamSinkConduit>
java.io.IOException
Copyright © 2018. All rights reserved.