Class FastLzFrameDecoder

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler

public class FastLzFrameDecoder extends ByteToMessageDecoder
Uncompresses a ByteBuf encoded by FastLzFrameEncoder using the FastLZ algorithm. See FastLZ format.
  • Constructor Details

    • FastLzFrameDecoder

      public FastLzFrameDecoder()
      Creates the fastest FastLZ decoder without checksum calculation.
    • FastLzFrameDecoder

      public FastLzFrameDecoder(boolean validateChecksums)
      Creates a FastLZ decoder with calculation of checksums as specified.
      Parameters:
      validateChecksums - If true, the checksum field will be validated against the actual uncompressed data, and if the checksums do not match, a suitable DecompressionException will be thrown. Note, that in this case decoder will use Adler32 as a default checksum calculator.
    • FastLzFrameDecoder

      public FastLzFrameDecoder(Checksum checksum)
      Creates a FastLZ decoder with specified checksum calculator.
      Parameters:
      checksum - the Checksum instance to use to check data for integrity. You may set null if you do not want to validate checksum of each block.
  • Method Details