Class IdentityCompressionFactory

  • All Implemented Interfaces:
    CompressionFactory

    public class IdentityCompressionFactory
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete 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 CompressionFactory.supported() compression algorithms.
      java.util.List<java.lang.String> supported()
      The list of supported decompression directives like:
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IdentityCompressionFactory

        public IdentityCompressionFactory()
    • Method Detail

      • supported

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

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