Package org.jwcarman.codec.transform.compress


package org.jwcarman.codec.transform.compress
Compression transforms: Codec<byte[]> stages that shrink a payload on the way out and inflate it on the way back, for use with Codec.andThen. All of them cap the decoded size (64 MiB by default) so a hostile payload cannot exhaust memory on decode.

CompressionStreamCodec is the base for stream-backed implementations; gzip and deflate ship here, and Zstandard in codec-zstd.

  • Classes
    Class
    Description
    Base class for stream-based compression transforms, intended for use with Codec.andThen(Codec).
    Compresses with the zlib format (RFC 1950): DEFLATE data wrapped in a two-byte header and Adler-32 checksum.
    Compresses with the gzip format (RFC 1952): DEFLATE data wrapped in a gzip header and CRC-32 trailer.