Class SnappyFrameDecoder

    • Field Detail

      • MAX_UNCOMPRESSED_DATA_SIZE

        private static final int MAX_UNCOMPRESSED_DATA_SIZE
        See Also:
        Constant Field Values
      • MAX_DECOMPRESSED_DATA_SIZE

        private static final int MAX_DECOMPRESSED_DATA_SIZE
        See Also:
        Constant Field Values
      • MAX_COMPRESSED_CHUNK_SIZE

        private static final int MAX_COMPRESSED_CHUNK_SIZE
        See Also:
        Constant Field Values
      • snappy

        private final Snappy snappy
      • validateChecksums

        private final boolean validateChecksums
      • started

        private boolean started
      • corrupted

        private boolean corrupted
      • numBytesToSkip

        private int numBytesToSkip
    • Constructor Detail

      • SnappyFrameDecoder

        public SnappyFrameDecoder()
        Creates a new snappy-framed decoder with validation of checksums turned OFF. To turn checksum validation on, please use the alternate SnappyFrameDecoder(boolean) constructor.
      • SnappyFrameDecoder

        public SnappyFrameDecoder​(boolean validateChecksums)
        Creates a new snappy-framed decoder with validation 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