public class ReadDataStreamSourceConduit
extends org.xnio.conduits.AbstractStreamSourceConduit<org.xnio.conduits.StreamSourceConduit>
Constructor | Description |
---|---|
ReadDataStreamSourceConduit(org.xnio.conduits.StreamSourceConduit next,
AbstractServerConnection connection) |
Modifier and Type | Method | Description |
---|---|---|
void |
awaitReadable() |
|
void |
awaitReadable(long time,
TimeUnit timeUnit) |
|
int |
read(ByteBuffer dst) |
|
long |
read(ByteBuffer[] dsts,
int offs,
int len) |
|
void |
resumeReads() |
|
long |
transferTo(long position,
long count,
FileChannel target) |
|
long |
transferTo(long count,
ByteBuffer throughBuffer,
org.xnio.channels.StreamSinkChannel target) |
getReadThread, isReadResumed, isReadShutdown, setReadReadyHandler, suspendReads, terminateReads, wakeupReads
public ReadDataStreamSourceConduit(org.xnio.conduits.StreamSourceConduit next, AbstractServerConnection connection)
public long transferTo(long position, long count, FileChannel target) throws IOException
transferTo
in class org.xnio.conduits.AbstractStreamSourceConduit<org.xnio.conduits.StreamSourceConduit>
IOException
public long transferTo(long count, ByteBuffer throughBuffer, org.xnio.channels.StreamSinkChannel target) throws IOException
transferTo
in class org.xnio.conduits.AbstractStreamSourceConduit<org.xnio.conduits.StreamSourceConduit>
IOException
public int read(ByteBuffer dst) throws IOException
read
in class org.xnio.conduits.AbstractStreamSourceConduit<org.xnio.conduits.StreamSourceConduit>
IOException
public long read(ByteBuffer[] dsts, int offs, int len) throws IOException
read
in class org.xnio.conduits.AbstractStreamSourceConduit<org.xnio.conduits.StreamSourceConduit>
IOException
public void resumeReads()
resumeReads
in class org.xnio.conduits.AbstractSourceConduit<org.xnio.conduits.StreamSourceConduit>
public void awaitReadable() throws IOException
awaitReadable
in class org.xnio.conduits.AbstractSourceConduit<org.xnio.conduits.StreamSourceConduit>
IOException
public void awaitReadable(long time, TimeUnit timeUnit) throws IOException
awaitReadable
in class org.xnio.conduits.AbstractSourceConduit<org.xnio.conduits.StreamSourceConduit>
IOException
Copyright © 2018. All rights reserved.