org.glassfish.grizzly.Transformer which encodes plain data to the GZIP format.
| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final int | |
| private static final int | |
| private static final Buffer | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected GZipEncoder. | |
| protected Buffer | deflate(Deflater deflater, MemoryManager<E extends Buffer> memoryManager)
Writes next block of compressed data to the output stream. |
| private Buffer | encodeBuffer(Buffer buffer, GZipEncoder.
|
| public Buffer | Returns: Buffer with the last GZIP data to be sent.Finishes to compress data to the output stream without closing the underlying stream. |
| private Buffer | |
| public String | |
| public boolean | hasInputRemaining(AttributeStorage storage, Buffer input)
Implements org.
|
| private static void | |
| private static void | |
| protected TransformationResult | transformImpl(AttributeStorage storage, Buffer input)
Implements abstract org.
|
| bufferSize | back to summary |
|---|---|
| private final int bufferSize | |
| compressionLevel | back to summary |
|---|---|
| private final int compressionLevel | |
| compressionStrategy | back to summary |
|---|---|
| private final int compressionStrategy | |
| GZIP_MAGIC | back to summary |
|---|---|
| private static final int GZIP_MAGIC | |
| header | back to summary |
|---|---|
| private static final Buffer header | |
| TRAILER_SIZE | back to summary |
|---|---|
| private static final int TRAILER_SIZE | |
| GZipEncoder | back to summary |
|---|---|
| public GZipEncoder() | |
| GZipEncoder | back to summary |
|---|---|
| public GZipEncoder(int bufferSize) | |
| GZipEncoder | back to summary |
|---|---|
| public GZipEncoder(int bufferSize, int compressionLevel, int compressionStrategy) | |
| createStateObject | back to summary |
|---|---|
| protected GZipEncoder. Overrides org.
| |
| deflate | back to summary |
|---|---|
| protected Buffer deflate(Deflater deflater, MemoryManager<E extends Buffer> memoryManager) Writes next block of compressed data to the output stream. | |
| encodeBuffer | back to summary |
|---|---|
| private Buffer encodeBuffer(Buffer buffer, GZipEncoder. | |
| finish | back to summary |
|---|---|
| public Buffer finish(AttributeStorage storage) Finishes to compress data to the output stream without closing the underlying stream. Use this method when applying multiple filters in succession to the same output stream. | |
| getHeader | back to summary |
|---|---|
| private Buffer getHeader() | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Get the Transformer name. The name is used to store Transformer associated data.
| |
| hasInputRemaining | back to summary |
|---|---|
| public boolean hasInputRemaining(AttributeStorage storage, Buffer input) Implements org.
| |
| putUInt | back to summary |
|---|---|
| private static void putUInt(Buffer buffer, int value) | |
| putUShort | back to summary |
|---|---|
| private static void putUShort(Buffer buffer, int value) | |
| transformImpl | back to summary |
|---|---|
| protected TransformationResult Implements abstract org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private CRC32 | crc32
CRC-32 of uncompressed data. |
| private Deflater | deflater
Compressor for this stream. |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void |
| crc32 | back to summary |
|---|---|
| private CRC32 crc32 CRC-32 of uncompressed data. | |
| deflater | back to summary |
|---|---|
| private Deflater deflater Compressor for this stream. | |
| isHeaderWritten | back to summary |
|---|---|
| private boolean isHeaderWritten | |
| isInitialized | back to summary |
|---|---|
| private boolean isInitialized | |
| GZipOutputState | back to summary |
|---|---|
| protected GZipOutputState() | |
| initialize | back to summary |
|---|---|
| private void initialize(int compressionLevel, int compressionStrategy) | |
| reset | back to summary |
|---|---|
| private void reset() | |