Interface Decompressor

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
BrotliDecompressor, Bzip2Decompressor, FastLzFrameDecompressor, JdkZlibDecompressor, Lz4FrameDecompressor, LzfDecompressor, SnappyFrameDecompressor, ZstdDecompressor

@UnstableApi public interface Decompressor extends AutoCloseable
Shared API for various decompression algorithms. A decompressor reports its current status using status(). Status documentation lists which operations are permitted for which status. Callers must observe the current status before invoking an operation that is only valid for that status.

All methods may throw exceptions. If an exception is thrown, no further operations are permitted, except for close().

This API is still in progress as part of the decompression migration tracked by #16743.