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
- Author:
- Stuart Douglas
-
Field Summary
FieldsFields inherited from class io.undertow.conduits.DeflatingStreamSinkConduit
currentBuffer, deflater, pooledObject -
Constructor Summary
ConstructorsConstructorDescriptionGzipStreamSinkConduit(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
Modifier and TypeMethodDescriptionprotected byte[]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 Details
-
crc
CRC-32 of uncompressed data.
-
-
Constructor Details
-
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 Details
-
postDeflate
- Overrides:
postDeflatein classDeflatingStreamSinkConduit
-
getTrailer
protected byte[] getTrailer()Description copied from class:DeflatingStreamSinkConduitcalled before the stream is finally flushed.- Overrides:
getTrailerin classDeflatingStreamSinkConduit
-