Class CompressionUtilities

    • Constructor Detail

      • CompressionUtilities

        public CompressionUtilities()
    • Method Detail

      • hasGzipFileHeader

        public static boolean hasGzipFileHeader​(java.io.File file)
        Reads the first few bytes of a file to check whether it is a Gzip file.
        Parameters:
        file - to check
        Returns:
        true if file has gzip header, false if not or if there is an IOException reading the file
        Since:
        API 4.1100