public class OutputStreamSinkChannel extends Object implements org.xnio.channels.StreamSinkChannel
| Constructor and Description |
|---|
OutputStreamSinkChannel(OutputStream outputStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
awaitWritable() |
void |
awaitWritable(long l,
TimeUnit timeUnit) |
void |
close() |
boolean |
flush() |
org.xnio.ChannelListener.Setter<? extends org.xnio.channels.StreamSinkChannel> |
getCloseSetter() |
org.xnio.XnioIoThread |
getIoThread() |
<T> T |
getOption(org.xnio.Option<T> option) |
org.xnio.XnioWorker |
getWorker() |
org.xnio.ChannelListener.Setter<? extends org.xnio.channels.StreamSinkChannel> |
getWriteSetter() |
org.xnio.XnioExecutor |
getWriteThread() |
boolean |
isOpen() |
boolean |
isWriteResumed() |
void |
resumeWrites() |
<T> T |
setOption(org.xnio.Option<T> option,
T t) |
void |
shutdownWrites() |
boolean |
supportsOption(org.xnio.Option<?> option) |
void |
suspendWrites() |
long |
transferFrom(FileChannel fileChannel,
long l,
long l1) |
long |
transferFrom(org.xnio.channels.StreamSourceChannel streamSourceChannel,
long l,
ByteBuffer byteBuffer) |
void |
wakeupWrites() |
int |
write(ByteBuffer byteBuffer) |
long |
write(ByteBuffer[] byteBuffers) |
long |
write(ByteBuffer[] byteBuffers,
int i,
int i1) |
int |
writeFinal(ByteBuffer byteBuffer) |
long |
writeFinal(ByteBuffer[] byteBuffers) |
long |
writeFinal(ByteBuffer[] byteBuffers,
int i,
int i1) |
public OutputStreamSinkChannel(OutputStream outputStream)
public long transferFrom(FileChannel fileChannel, long l, long l1) throws IOException
transferFrom in interface org.xnio.channels.StreamSinkChannelIOExceptionpublic long transferFrom(org.xnio.channels.StreamSourceChannel streamSourceChannel,
long l,
ByteBuffer byteBuffer)
throws IOException
transferFrom in interface org.xnio.channels.StreamSinkChannelIOExceptionpublic void suspendWrites()
suspendWrites in interface org.xnio.channels.SuspendableWriteChannelpublic void resumeWrites()
resumeWrites in interface org.xnio.channels.SuspendableWriteChannelpublic boolean isWriteResumed()
isWriteResumed in interface org.xnio.channels.SuspendableWriteChannelpublic void wakeupWrites()
wakeupWrites in interface org.xnio.channels.SuspendableWriteChannelpublic void shutdownWrites()
throws IOException
shutdownWrites in interface org.xnio.channels.SuspendableWriteChannelIOExceptionpublic void awaitWritable()
throws IOException
awaitWritable in interface org.xnio.channels.SuspendableWriteChannelIOExceptionpublic void awaitWritable(long l,
TimeUnit timeUnit)
throws IOException
awaitWritable in interface org.xnio.channels.SuspendableWriteChannelIOExceptionpublic org.xnio.XnioExecutor getWriteThread()
getWriteThread in interface org.xnio.channels.SuspendableWriteChannelpublic org.xnio.ChannelListener.Setter<? extends org.xnio.channels.StreamSinkChannel> getWriteSetter()
getWriteSetter in interface org.xnio.channels.StreamSinkChannelgetWriteSetter in interface org.xnio.channels.SuspendableWriteChannelpublic org.xnio.ChannelListener.Setter<? extends org.xnio.channels.StreamSinkChannel> getCloseSetter()
getCloseSetter in interface org.xnio.channels.CloseableChannelgetCloseSetter in interface org.xnio.channels.StreamSinkChannelgetCloseSetter in interface org.xnio.channels.SuspendableWriteChannelpublic org.xnio.XnioWorker getWorker()
getWorker in interface org.xnio.channels.CloseableChannelpublic org.xnio.XnioIoThread getIoThread()
getIoThread in interface org.xnio.channels.CloseableChannelpublic boolean flush()
throws IOException
flush in interface org.xnio.channels.SuspendableWriteChannelIOExceptionpublic int writeFinal(ByteBuffer byteBuffer) throws IOException
writeFinal in interface org.xnio.channels.StreamSinkChannelIOExceptionpublic long writeFinal(ByteBuffer[] byteBuffers, int i, int i1) throws IOException
writeFinal in interface org.xnio.channels.StreamSinkChannelIOExceptionpublic long writeFinal(ByteBuffer[] byteBuffers) throws IOException
writeFinal in interface org.xnio.channels.StreamSinkChannelIOExceptionpublic long write(ByteBuffer[] byteBuffers, int i, int i1) throws IOException
write in interface GatheringByteChannelIOExceptionpublic long write(ByteBuffer[] byteBuffers) throws IOException
write in interface GatheringByteChannelIOExceptionpublic int write(ByteBuffer byteBuffer) throws IOException
write in interface WritableByteChannelIOExceptionpublic boolean isOpen()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface Channelclose in interface InterruptibleChannelclose in interface org.xnio.channels.CloseableChannelclose in interface org.xnio.channels.SuspendableWriteChannelIOExceptionpublic boolean supportsOption(org.xnio.Option<?> option)
supportsOption in interface org.xnio.channels.Configurablepublic <T> T getOption(org.xnio.Option<T> option)
throws IOException
getOption in interface org.xnio.channels.ConfigurableIOExceptionpublic <T> T setOption(org.xnio.Option<T> option,
T t)
throws IllegalArgumentException,
IOException
setOption in interface org.xnio.channels.ConfigurableIllegalArgumentExceptionIOExceptionCopyright © 2011-2018-2019. All Rights Reserved.