Top Fields Constructors Methods
io.undertow.conduits

public Class GzipStreamSourceConduit

extends InflatingStreamSourceConduit
Class Inheritance
Imports
java.io.IOException, java.nio.ByteBuffer, java.util.zip.CRC32, .Deflater, .Inflater, org.xnio.conduits.StreamSourceConduit, io.undertow.UndertowMessages, io.undertow.server.ConduitWrapper, .HttpServerExchange, io.undertow.util.ConduitFactory, .ObjectPool

Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private final CRC32
pack-priv byte[]
private int
private static final int
private static final byte[]
private int
private int
public static final ConduitWrapper<StreamSourceConduit>

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
protected boolean
Inherited from io.undertow.conduits.InflatingStreamSourceConduit:
newInstanceInflaterPoolreadreadsimpleInflaterPoolterminateReadstransferTotransferTo

Field Detail

crcback to summary
private final CRC32 crc
expectedFooterback to summary
pack-priv byte[] expectedFooter
footerReadback to summary
private int footerRead
GZIP_MAGICback to summary
private static final int GZIP_MAGIC
headerReadback to summary
private int headerRead
totalOutback to summary
private int totalOut
WRAPPERback to summary
public static final ConduitWrapper<StreamSourceConduit> WRAPPER

Hides io.undertow.conduits.InflatingStreamSourceConduit.WRAPPER.

Constructor Detail

GzipStreamSourceConduitback to summary
public GzipStreamSourceConduit(HttpServerExchange exchange, StreamSourceConduit next)
GzipStreamSourceConduitback to summary
public GzipStreamSourceConduit(HttpServerExchange exchange, StreamSourceConduit next, ObjectPool<Inflater> inflaterPool)

Method Detail

dataDeflatedback to summary
protected void dataDeflated(byte[] data, int off, int len)

Overrides io.undertow.conduits.InflatingStreamSourceConduit.dataDeflated.

readFooterback to summary
protected void readFooter(ByteBuffer buf) throws IOException

Overrides io.undertow.conduits.InflatingStreamSourceConduit.readFooter.

readHeaderback to summary
protected boolean readHeader(ByteBuffer headerData) throws IOException

Overrides io.undertow.conduits.InflatingStreamSourceConduit.readHeader.