Module io.avaje.jex

Interface Compressor


public interface Compressor
Compressor interface defines methods for compressing an output stream.
  • Method Summary

    Modifier and Type
    Method
    Description
    Compresses the provided output stream.
    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

      OutputStream compress(OutputStream out) throws IOException
      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