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 void
preDeflate
(byte[] 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
-
preDeflate
protected void preDeflate(byte[] data) - Overrides:
preDeflate
in classDeflatingStreamSinkConduit
-
getTrailer
protected byte[] getTrailer()Description copied from class:DeflatingStreamSinkConduit
called before the stream is finally flushed.- Overrides:
getTrailer
in classDeflatingStreamSinkConduit
-