Top Fields Constructors Methods
io.undertow.conduits

public Class GzipStreamSinkConduit

extends DeflatingStreamSinkConduit
Class Inheritance
Imports
io.undertow.server.Connectors, .HttpServerExchange, io.undertow.util.ConduitFactory, .ObjectPool, org.xnio.conduits.StreamSinkConduit, java.nio.ByteBuffer, java.util.zip.CRC32, .Deflater

Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
protected CRC32
crc

CRC-32 of uncompressed data.

private static final int
private static final byte[]
Inherited from io.undertow.conduits.DeflatingStreamSinkConduit:
currentBufferdeflaterpooledObject

Constructor Summary

AccessConstructor and Description
public
public
GzipStreamSinkConduit(ConduitFactory<StreamSinkConduit> conduitFactory, HttpServerExchange exchange, int deflateLevel)

public

Method Summary

Modifier and TypeMethod and Description
protected byte[]
getTrailer()

Overrides io.undertow.conduits.DeflatingStreamSinkConduit.getTrailer.

called before the stream is finally flushed.

protected void
private void
Inherited from io.undertow.conduits.DeflatingStreamSinkConduit:
awaitWritableawaitWritableflushgetWorkergetWriteThreadisWriteResumedisWriteShutdownnewInstanceDeflaterPoolresumeWritessetWriteReadyHandlersimpleDeflaterPoolsuspendWritesterminateWritestransferFromtransferFromtruncateWriteswakeupWriteswritewritewriteFinalwriteFinal

Field Detail

crcback to summary
protected CRC32 crc

CRC-32 of uncompressed data.

GZIP_MAGICback to summary
private static final int GZIP_MAGIC

Constructor Detail

GzipStreamSinkConduitback to summary
public GzipStreamSinkConduit(ConduitFactory<StreamSinkConduit> conduitFactory, HttpServerExchange exchange)
GzipStreamSinkConduitback to summary
public GzipStreamSinkConduit(ConduitFactory<StreamSinkConduit> conduitFactory, HttpServerExchange exchange, int deflateLevel)
GzipStreamSinkConduitback to summary
public GzipStreamSinkConduit(ConduitFactory<StreamSinkConduit> conduitFactory, HttpServerExchange exchange, ObjectPool<T> deflaterPool)

Method Detail

getTrailerback to summary
protected byte[] getTrailer()

Overrides io.undertow.conduits.DeflatingStreamSinkConduit.getTrailer.

Doc from io.undertow.conduits.DeflatingStreamSinkConduit.getTrailer.

called before the stream is finally flushed.

Annotations
@Override
postDeflateback to summary
protected void postDeflate(ByteBuffer data)

Overrides io.undertow.conduits.DeflatingStreamSinkConduit.postDeflate.

Annotations
@Override
writeHeaderback to summary
private void writeHeader()