org.xnio.conduits.Conduit, org.xnio.conduits.SourceConduit, org.xnio.conduits.StreamSourceConduitGzipStreamSourceConduitpublic class InflatingStreamSourceConduit
extends org.xnio.conduits.AbstractStreamSourceConduit<org.xnio.conduits.StreamSourceConduit>
| Modifier and Type | Field | Description |
|---|---|---|
static ConduitWrapper<org.xnio.conduits.StreamSourceConduit> |
WRAPPER |
| Constructor | Description |
|---|---|
InflatingStreamSourceConduit(HttpServerExchange exchange,
org.xnio.conduits.StreamSourceConduit next) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
dataDeflated(byte[] data,
int off,
int len) |
|
int |
read(java.nio.ByteBuffer dst) |
|
long |
read(java.nio.ByteBuffer[] dsts,
int offset,
int length) |
|
protected void |
readFooter(java.nio.ByteBuffer buf) |
|
protected boolean |
readHeader(java.nio.ByteBuffer byteBuffer) |
|
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, wakeupReadspublic static final ConduitWrapper<org.xnio.conduits.StreamSourceConduit> WRAPPER
public InflatingStreamSourceConduit(HttpServerExchange exchange, org.xnio.conduits.StreamSourceConduit next)
public int read(java.nio.ByteBuffer dst)
throws java.io.IOException
read in interface org.xnio.conduits.StreamSourceConduitread in class org.xnio.conduits.AbstractStreamSourceConduit<org.xnio.conduits.StreamSourceConduit>java.io.IOExceptionprotected void readFooter(java.nio.ByteBuffer buf)
throws java.io.IOException
java.io.IOExceptionprotected boolean readHeader(java.nio.ByteBuffer byteBuffer)
throws java.io.IOException
java.io.IOExceptionprotected void dataDeflated(byte[] data,
int off,
int len)
public long transferTo(long position,
long count,
java.nio.channels.FileChannel target)
throws java.io.IOException
transferTo in interface org.xnio.conduits.StreamSourceConduittransferTo in class org.xnio.conduits.AbstractStreamSourceConduit<org.xnio.conduits.StreamSourceConduit>java.io.IOExceptionpublic long transferTo(long count,
java.nio.ByteBuffer throughBuffer,
org.xnio.channels.StreamSinkChannel target)
throws java.io.IOException
transferTo in interface org.xnio.conduits.StreamSourceConduittransferTo in class org.xnio.conduits.AbstractStreamSourceConduit<org.xnio.conduits.StreamSourceConduit>java.io.IOExceptionpublic long read(java.nio.ByteBuffer[] dsts,
int offset,
int length)
throws java.io.IOException
read in interface org.xnio.conduits.StreamSourceConduitread in class org.xnio.conduits.AbstractStreamSourceConduit<org.xnio.conduits.StreamSourceConduit>java.io.IOExceptionpublic void terminateReads()
throws java.io.IOException
terminateReads in interface org.xnio.conduits.SourceConduitterminateReads in class org.xnio.conduits.AbstractSourceConduit<org.xnio.conduits.StreamSourceConduit>java.io.IOExceptionCopyright © 2018. All rights reserved.