org.xnio.conduits.Conduit
, org.xnio.conduits.SourceConduit
, org.xnio.conduits.StreamSourceConduit
GzipStreamSourceConduit
public 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, wakeupReads
public 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.StreamSourceConduit
read
in class org.xnio.conduits.AbstractStreamSourceConduit<org.xnio.conduits.StreamSourceConduit>
java.io.IOException
protected void readFooter(java.nio.ByteBuffer buf) throws java.io.IOException
java.io.IOException
protected boolean readHeader(java.nio.ByteBuffer byteBuffer) throws java.io.IOException
java.io.IOException
protected 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.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
Copyright © 2018. All rights reserved.