Class Gzip


  • public class Gzip
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Gzip()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] gzip​(byte[] plainContent)  
      static byte[] gzip​(java.lang.String plainContent)  
      static byte[] gzip​(java.lang.String plainContent, java.nio.charset.Charset charset)  
      static boolean isGzipped​(byte[] content)  
      static byte[] unGzip​(byte[] gzippedContent)  
      static java.lang.String unGzipToString​(byte[] gzippedContent)  
      • Methods inherited from class java.lang.Object

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

      • Gzip

        public Gzip()
    • Method Detail

      • unGzip

        public static byte[] unGzip​(byte[] gzippedContent)
      • unGzipToString

        public static java.lang.String unGzipToString​(byte[] gzippedContent)
      • gzip

        public static byte[] gzip​(java.lang.String plainContent)
      • gzip

        public static byte[] gzip​(java.lang.String plainContent,
                                  java.nio.charset.Charset charset)
      • gzip

        public static byte[] gzip​(byte[] plainContent)
      • isGzipped

        public static boolean isGzipped​(byte[] content)