public class GZipEncoder extends AbstractTransformer<Buffer,Buffer>
Transformer
which encodes plain data to
the GZIP format.Modifier and Type | Class and Description |
---|---|
protected static class |
GZipEncoder.GZipOutputState |
AbstractTransformer.LastResultAwareState<K,L>
attributeBuilder, stateAttr
Constructor and Description |
---|
GZipEncoder() |
GZipEncoder(int bufferSize) |
Modifier and Type | Method and Description |
---|---|
protected GZipEncoder.GZipOutputState |
createStateObject() |
protected Buffer |
deflate(Deflater deflater,
MemoryManager memoryManager)
Writes next block of compressed data to the output stream.
|
Buffer |
finish(AttributeStorage storage)
Finishes to compress data to the output stream without closing
the underlying stream.
|
String |
getName()
Get the Transformer name.
|
boolean |
hasInputRemaining(AttributeStorage storage,
Buffer input) |
protected TransformationResult<Buffer,Buffer> |
transformImpl(AttributeStorage storage,
Buffer input) |
getLastResult, getMemoryManager, getNamePrefix, getValue, obtainMemoryManager, obtainStateObject, release, saveLastResult, setMemoryManager, transform
public String getName()
public boolean hasInputRemaining(AttributeStorage storage, Buffer input)
protected GZipEncoder.GZipOutputState createStateObject()
createStateObject
in class AbstractTransformer<Buffer,Buffer>
protected TransformationResult<Buffer,Buffer> transformImpl(AttributeStorage storage, Buffer input) throws TransformationException
transformImpl
in class AbstractTransformer<Buffer,Buffer>
TransformationException
public Buffer finish(AttributeStorage storage)
Buffer
with the last GZIP data to be sent.protected Buffer deflate(Deflater deflater, MemoryManager memoryManager)
Copyright © 2014 Oracle Corporation. All rights reserved.