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.SuspendableReadChannel
public 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.StreamSourceChannel
java.io.IOException
public long transferTo(long count, java.nio.ByteBuffer throughBuffer, org.xnio.channels.StreamSinkChannel target) throws java.io.IOException
transferTo
in interface org.xnio.channels.StreamSourceChannel
java.io.IOException
public org.xnio.ChannelListener.Setter<? extends org.xnio.channels.StreamSourceChannel> getReadSetter()
getReadSetter
in interface org.xnio.channels.StreamSourceChannel
getReadSetter
in interface org.xnio.channels.SuspendableReadChannel
public org.xnio.ChannelListener.Setter<? extends org.xnio.channels.StreamSourceChannel> getCloseSetter()
getCloseSetter
in interface org.xnio.channels.CloseableChannel
getCloseSetter
in interface org.xnio.channels.StreamSourceChannel
getCloseSetter
in interface org.xnio.channels.SuspendableReadChannel
public long read(java.nio.ByteBuffer[] dsts, int offset, int length) throws java.io.IOException
read
in interface java.nio.channels.ScatteringByteChannel
java.io.IOException
public long read(java.nio.ByteBuffer[] dsts) throws java.io.IOException
read
in interface java.nio.channels.ScatteringByteChannel
java.io.IOException
public void suspendReads()
suspendReads
in interface org.xnio.channels.SuspendableReadChannel
public void resumeReads()
resumeReads
in interface org.xnio.channels.SuspendableReadChannel
public boolean isReadResumed()
isReadResumed
in interface org.xnio.channels.SuspendableReadChannel
public void wakeupReads()
wakeupReads
in interface org.xnio.channels.SuspendableReadChannel
public void shutdownReads() throws java.io.IOException
shutdownReads
in interface org.xnio.channels.SuspendableReadChannel
java.io.IOException
public void awaitReadable() throws java.io.IOException
awaitReadable
in interface org.xnio.channels.SuspendableReadChannel
java.io.IOException
public void awaitReadable(long time, java.util.concurrent.TimeUnit timeUnit) throws java.io.IOException
awaitReadable
in interface org.xnio.channels.SuspendableReadChannel
java.io.IOException
public org.xnio.XnioExecutor getReadThread()
getReadThread
in interface org.xnio.channels.SuspendableReadChannel
public int read(java.nio.ByteBuffer dst) throws java.io.IOException
read
in interface java.nio.channels.ReadableByteChannel
java.io.IOException
public org.xnio.XnioWorker getWorker()
getWorker
in interface org.xnio.channels.CloseableChannel
public org.xnio.XnioIoThread getIoThread()
getIoThread
in interface org.xnio.channels.CloseableChannel
public boolean supportsOption(org.xnio.Option<?> option)
supportsOption
in interface org.xnio.channels.Configurable
public <T> T getOption(org.xnio.Option<T> option) throws java.io.IOException
getOption
in interface org.xnio.channels.Configurable
java.io.IOException
public <T> T setOption(org.xnio.Option<T> option, T value) throws java.io.IOException
setOption
in interface org.xnio.channels.Configurable
java.io.IOException
public boolean isOpen()
isOpen
in interface java.nio.channels.Channel
public void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
close
in interface java.nio.channels.Channel
close
in interface java.io.Closeable
close
in interface org.xnio.channels.CloseableChannel
close
in interface java.nio.channels.InterruptibleChannel
java.io.IOException
Copyright © 2018. All rights reserved.