org.xnio.conduits.Conduit
, org.xnio.conduits.SourceConduit
, org.xnio.conduits.StreamSourceConduit
public class ChunkedStreamSourceConduit
extends org.xnio.conduits.AbstractStreamSourceConduit<org.xnio.conduits.StreamSourceConduit>
Modifier and Type | Field | Description |
---|---|---|
static AttachmentKey<HeaderMap> |
TRAILERS |
Deprecated.
|
Modifier | Constructor | Description |
---|---|---|
protected |
ChunkedStreamSourceConduit(org.xnio.conduits.StreamSourceConduit next,
io.undertow.conduits.ChunkedStreamSourceConduit.BufferWrapper bufferWrapper,
ConduitListener<? super ChunkedStreamSourceConduit> finishListener,
Attachable attachable,
HttpServerExchange exchange,
java.io.Closeable closeable) |
|
|
ChunkedStreamSourceConduit(org.xnio.conduits.StreamSourceConduit next,
HttpServerExchange exchange,
ConduitListener<? super ChunkedStreamSourceConduit> finishListener) |
|
|
ChunkedStreamSourceConduit(org.xnio.conduits.StreamSourceConduit next,
org.xnio.conduits.PushBackStreamSourceConduit channel,
ByteBufferPool pool,
ConduitListener<? super ChunkedStreamSourceConduit> finishListener,
Attachable attachable,
java.io.Closeable closeable) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
isFinished() |
|
int |
read(java.nio.ByteBuffer dst) |
|
long |
read(java.nio.ByteBuffer[] dsts,
int offset,
int length) |
|
void |
terminateReads() |
|
long |
transferTo(long position,
long count,
java.nio.channels.FileChannel target) |
|
long |
transferTo(long count,
java.nio.ByteBuffer throughBuffer,
org.xnio.channels.StreamSinkChannel target) |
awaitReadable, awaitReadable, getReadThread, isReadResumed, isReadShutdown, resumeReads, setReadReadyHandler, suspendReads, wakeupReads
@Deprecated public static final AttachmentKey<HeaderMap> TRAILERS
public ChunkedStreamSourceConduit(org.xnio.conduits.StreamSourceConduit next, org.xnio.conduits.PushBackStreamSourceConduit channel, ByteBufferPool pool, ConduitListener<? super ChunkedStreamSourceConduit> finishListener, Attachable attachable, java.io.Closeable closeable)
public ChunkedStreamSourceConduit(org.xnio.conduits.StreamSourceConduit next, HttpServerExchange exchange, ConduitListener<? super ChunkedStreamSourceConduit> finishListener)
protected ChunkedStreamSourceConduit(org.xnio.conduits.StreamSourceConduit next, io.undertow.conduits.ChunkedStreamSourceConduit.BufferWrapper bufferWrapper, ConduitListener<? super ChunkedStreamSourceConduit> finishListener, Attachable attachable, HttpServerExchange exchange, java.io.Closeable closeable)
public long transferTo(long position, long count, java.nio.channels.FileChannel target) throws java.io.IOException
transferTo
in interface org.xnio.conduits.StreamSourceConduit
transferTo
in class org.xnio.conduits.AbstractStreamSourceConduit<org.xnio.conduits.StreamSourceConduit>
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.conduits.StreamSourceConduit
transferTo
in class org.xnio.conduits.AbstractStreamSourceConduit<org.xnio.conduits.StreamSourceConduit>
java.io.IOException
public long read(java.nio.ByteBuffer[] dsts, int offset, int length) throws java.io.IOException
read
in interface org.xnio.conduits.StreamSourceConduit
read
in class org.xnio.conduits.AbstractStreamSourceConduit<org.xnio.conduits.StreamSourceConduit>
java.io.IOException
public void terminateReads() throws java.io.IOException
terminateReads
in interface org.xnio.conduits.SourceConduit
terminateReads
in class org.xnio.conduits.AbstractSourceConduit<org.xnio.conduits.StreamSourceConduit>
java.io.IOException
public int read(java.nio.ByteBuffer dst) throws java.io.IOException
read
in interface org.xnio.conduits.StreamSourceConduit
read
in class org.xnio.conduits.AbstractStreamSourceConduit<org.xnio.conduits.StreamSourceConduit>
java.io.IOException
public boolean isFinished()
Copyright © 2018. All rights reserved.