public class BytesReceivedStreamSourceConduit
extends org.xnio.conduits.AbstractStreamSourceConduit<org.xnio.conduits.StreamSourceConduit>
Constructor | Description |
---|---|
BytesReceivedStreamSourceConduit(org.xnio.conduits.StreamSourceConduit next,
ByteActivityCallback callback) |
Construct a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
int |
read(ByteBuffer dst) |
|
long |
read(ByteBuffer[] dsts,
int offs,
int len) |
|
long |
transferTo(long position,
long count,
FileChannel target) |
|
long |
transferTo(long count,
ByteBuffer throughBuffer,
org.xnio.channels.StreamSinkChannel target) |
awaitReadable, awaitReadable, getReadThread, isReadResumed, isReadShutdown, resumeReads, setReadReadyHandler, suspendReads, terminateReads, wakeupReads
public BytesReceivedStreamSourceConduit(org.xnio.conduits.StreamSourceConduit next, ByteActivityCallback callback)
next
- the delegate conduit to setcallback
- 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
Copyright © 2018. All rights reserved.