Interface CompressionFactory

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.io.InputStream decompressing​(java.io.InputStream in, java.lang.String type)
      Wraps the provided InputStream into stream capable of decompressing supported() compression algorithms.
      java.util.List<java.lang.String> supported()
      The list of supported decompression directives like:
    • Method Detail

      • supported

        java.util.List<java.lang.String> supported()
        The list of supported decompression directives like:
              List.of("gzip", "x-gzip")
         
        Returns:
        Supported types. Never null.
      • decompressing

        java.io.InputStream decompressing​(java.io.InputStream in,
                                          java.lang.String type)
                                   throws java.io.IOException
        Wraps the provided InputStream into stream capable of decompressing supported() compression algorithms.
        Parameters:
        in - The input stream.
        type - One of supported() types.
        Returns:
        Wrapped input stream.
        Throws:
        java.io.IOException - When in does not represent a supported compression type or I/O error occures.
        java.lang.IllegalArgumentException - When type supported() does not contain type.