Package io.undertow.conduits
Class GzipStreamSinkConduit
- java.lang.Object
-
- io.undertow.conduits.DeflatingStreamSinkConduit
-
- io.undertow.conduits.GzipStreamSinkConduit
-
- All Implemented Interfaces:
org.xnio.conduits.Conduit,org.xnio.conduits.SinkConduit,org.xnio.conduits.StreamSinkConduit
public class GzipStreamSinkConduit extends DeflatingStreamSinkConduit
- Author:
- Stuart Douglas
-
-
Field Summary
Fields Modifier and Type Field Description protected CRC32crcCRC-32 of uncompressed data.-
Fields inherited from class io.undertow.conduits.DeflatingStreamSinkConduit
currentBuffer, deflater, pooledObject
-
-
Constructor Summary
Constructors Constructor Description GzipStreamSinkConduit(ConduitFactory<org.xnio.conduits.StreamSinkConduit> conduitFactory, HttpServerExchange exchange)GzipStreamSinkConduit(ConduitFactory<org.xnio.conduits.StreamSinkConduit> conduitFactory, HttpServerExchange exchange, int deflateLevel)GzipStreamSinkConduit(ConduitFactory<org.xnio.conduits.StreamSinkConduit> conduitFactory, HttpServerExchange exchange, ObjectPool deflaterPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]getTrailer()called before the stream is finally flushed.protected voidpostDeflate(ByteBuffer data)-
Methods inherited from class io.undertow.conduits.DeflatingStreamSinkConduit
awaitWritable, awaitWritable, flush, getWorker, getWriteThread, isWriteResumed, isWriteShutdown, newInstanceDeflaterPool, resumeWrites, setWriteReadyHandler, simpleDeflaterPool, suspendWrites, terminateWrites, transferFrom, transferFrom, truncateWrites, wakeupWrites, write, write, writeFinal, writeFinal
-
-
-
-
Field Detail
-
crc
protected CRC32 crc
CRC-32 of uncompressed data.
-
-
Constructor Detail
-
GzipStreamSinkConduit
public GzipStreamSinkConduit(ConduitFactory<org.xnio.conduits.StreamSinkConduit> conduitFactory, HttpServerExchange exchange)
-
GzipStreamSinkConduit
public GzipStreamSinkConduit(ConduitFactory<org.xnio.conduits.StreamSinkConduit> conduitFactory, HttpServerExchange exchange, int deflateLevel)
-
GzipStreamSinkConduit
public GzipStreamSinkConduit(ConduitFactory<org.xnio.conduits.StreamSinkConduit> conduitFactory, HttpServerExchange exchange, ObjectPool deflaterPool)
-
-
Method Detail
-
postDeflate
protected void postDeflate(ByteBuffer data)
- Overrides:
postDeflatein classDeflatingStreamSinkConduit
-
getTrailer
protected byte[] getTrailer()
Description copied from class:DeflatingStreamSinkConduitcalled before the stream is finally flushed.- Overrides:
getTrailerin classDeflatingStreamSinkConduit
-
-