Class GzipUtils

java.lang.Object
gaiasky.util.io.GzipUtils

public class GzipUtils extends Object
Naive GZIP utilities class.
  • Constructor Details

    • GzipUtils

      public GzipUtils()
  • Method Details

    • isGZipped

      public static boolean isGZipped(InputStream in)
      Checks if an input stream is gzipped.
      Parameters:
      in - The input stream.
      Returns:
      Whether the input stream is in Gzip format.
    • isGZipped

      public static boolean isGZipped(File f)
      Checks if a file is gzipped.
      Parameters:
      f - The file.
      Returns:
      Whether the file is in Gzip format or not.