Class GZipUtil


  • public class GZipUtil
    extends Object
    GZip-related utilities.
    • Constructor Detail

      • GZipUtil

        public GZipUtil()
    • Method Detail

      • isGZipStream

        public static boolean isGZipStream​(InputStream in)
                                    throws IOException
        Check if a stream is a GZIP stream, by checking the first bytes of the stream.
        Parameters:
        in - input stream
        Returns:
        true if a stream is a GZIP stream
        Throws:
        IOException