Class LZ4BlockInputStream

All Implemented Interfaces:
Closeable, AutoCloseable

public class LZ4BlockInputStream extends FilterInputStream
InputStream implementation to decode data written with LZ4BlockOutputStream. This class is not thread-safe and does not support mark(int)/reset().

Use LZ4BlockInputStream.Builder.withAcceptOversizedBlocks(boolean) only for trusted inputs that may contain noncanonical legacy LZ4 blocks. Enabling it restores acceptance of blocks whose compressed length is greater than or equal to the original length, which may permit large attacker-controlled allocations.

See Also: