java.io.Closeable, java.lang.AutoCloseable, java.nio.channels.Channel, java.nio.channels.InterruptibleChannel, java.nio.channels.ReadableByteChannel, java.nio.channels.ScatteringByteChannel, org.xnio.channels.CloseableChannel, org.xnio.channels.Configurable, org.xnio.channels.StreamSourceChannel, org.xnio.channels.SuspendableReadChannelpublic class ChannelFunctionStreamSourceChannel
extends java.lang.Object
implements org.xnio.channels.StreamSourceChannel
| Constructor | Description |
|---|---|
ChannelFunctionStreamSourceChannel(org.xnio.channels.StreamSourceChannel channel,
ChannelFunction... functions) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
awaitReadable() |
|
void |
awaitReadable(long time,
java.util.concurrent.TimeUnit timeUnit) |
|
void |
close() |
|
org.xnio.ChannelListener.Setter<? extends org.xnio.channels.StreamSourceChannel> |
getCloseSetter() |
|
org.xnio.XnioIoThread |
getIoThread() |
|
<T> T |
getOption(org.xnio.Option<T> option) |
|
org.xnio.ChannelListener.Setter<? extends org.xnio.channels.StreamSourceChannel> |
getReadSetter() |
|
org.xnio.XnioExecutor |
getReadThread() |
|
org.xnio.XnioWorker |
getWorker() |
|
boolean |
isOpen() |
|
boolean |
isReadResumed() |
|
int |
read(java.nio.ByteBuffer dst) |
|
long |
read(java.nio.ByteBuffer[] dsts) |
|
long |
read(java.nio.ByteBuffer[] dsts,
int offset,
int length) |
|
void |
resumeReads() |
|
<T> T |
setOption(org.xnio.Option<T> option,
T value) |
|
void |
shutdownReads() |
|
boolean |
supportsOption(org.xnio.Option<?> option) |
|
void |
suspendReads() |
|
long |
transferTo(long position,
long count,
java.nio.channels.FileChannel target) |
|
long |
transferTo(long count,
java.nio.ByteBuffer throughBuffer,
org.xnio.channels.StreamSinkChannel target) |
|
void |
wakeupReads() |
public ChannelFunctionStreamSourceChannel(org.xnio.channels.StreamSourceChannel channel,
ChannelFunction... functions)
public long transferTo(long position,
long count,
java.nio.channels.FileChannel target)
throws java.io.IOException
transferTo in interface org.xnio.channels.StreamSourceChanneljava.io.IOExceptionpublic long transferTo(long count,
java.nio.ByteBuffer throughBuffer,
org.xnio.channels.StreamSinkChannel target)
throws java.io.IOException
transferTo in interface org.xnio.channels.StreamSourceChanneljava.io.IOExceptionpublic org.xnio.ChannelListener.Setter<? extends org.xnio.channels.StreamSourceChannel> getReadSetter()
getReadSetter in interface org.xnio.channels.StreamSourceChannelgetReadSetter in interface org.xnio.channels.SuspendableReadChannelpublic org.xnio.ChannelListener.Setter<? extends org.xnio.channels.StreamSourceChannel> getCloseSetter()
getCloseSetter in interface org.xnio.channels.CloseableChannelgetCloseSetter in interface org.xnio.channels.StreamSourceChannelgetCloseSetter in interface org.xnio.channels.SuspendableReadChannelpublic long read(java.nio.ByteBuffer[] dsts,
int offset,
int length)
throws java.io.IOException
read in interface java.nio.channels.ScatteringByteChanneljava.io.IOExceptionpublic long read(java.nio.ByteBuffer[] dsts)
throws java.io.IOException
read in interface java.nio.channels.ScatteringByteChanneljava.io.IOExceptionpublic void suspendReads()
suspendReads in interface org.xnio.channels.SuspendableReadChannelpublic void resumeReads()
resumeReads in interface org.xnio.channels.SuspendableReadChannelpublic boolean isReadResumed()
isReadResumed in interface org.xnio.channels.SuspendableReadChannelpublic void wakeupReads()
wakeupReads in interface org.xnio.channels.SuspendableReadChannelpublic void shutdownReads()
throws java.io.IOException
shutdownReads in interface org.xnio.channels.SuspendableReadChanneljava.io.IOExceptionpublic void awaitReadable()
throws java.io.IOException
awaitReadable in interface org.xnio.channels.SuspendableReadChanneljava.io.IOExceptionpublic void awaitReadable(long time,
java.util.concurrent.TimeUnit timeUnit)
throws java.io.IOException
awaitReadable in interface org.xnio.channels.SuspendableReadChanneljava.io.IOExceptionpublic org.xnio.XnioExecutor getReadThread()
getReadThread in interface org.xnio.channels.SuspendableReadChannelpublic int read(java.nio.ByteBuffer dst)
throws java.io.IOException
read in interface java.nio.channels.ReadableByteChanneljava.io.IOExceptionpublic org.xnio.XnioWorker getWorker()
getWorker in interface org.xnio.channels.CloseableChannelpublic org.xnio.XnioIoThread getIoThread()
getIoThread in interface org.xnio.channels.CloseableChannelpublic boolean supportsOption(org.xnio.Option<?> option)
supportsOption in interface org.xnio.channels.Configurablepublic <T> T getOption(org.xnio.Option<T> option)
throws java.io.IOException
getOption in interface org.xnio.channels.Configurablejava.io.IOExceptionpublic <T> T setOption(org.xnio.Option<T> option,
T value)
throws java.io.IOException
setOption in interface org.xnio.channels.Configurablejava.io.IOExceptionpublic boolean isOpen()
isOpen in interface java.nio.channels.Channelpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channelclose in interface java.io.Closeableclose in interface org.xnio.channels.CloseableChannelclose in interface java.nio.channels.InterruptibleChanneljava.io.IOExceptionCopyright © 2018. All rights reserved.