Interface Compressor
public interface Compressor
Compressor interface defines methods for compressing an output stream.
-
Method Summary
Modifier and TypeMethodDescriptioncompress(OutputStream out) Compresses the provided output stream.encoding()Gets the content encoding for this compressor (e.g., "gzip").
-
Method Details
-
encoding
String encoding()Gets the content encoding for this compressor (e.g., "gzip").- Returns:
- the content encoding
- See Also:
-
compress
Compresses the provided output stream.- Parameters:
out- the output stream to compress- Returns:
- the compressed output stream
- Throws:
IOException- if an error occurs during compression
-