Class GzipUtils

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

public class GzipUtils extends Object
  • Constructor Details Link icon

    • GzipUtils Link icon

      public GzipUtils()
  • Method Details Link icon

    • isGZipped Link icon

      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 Link icon

      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.
    • main Link icon

      public static void main(String[] args) throws FileNotFoundException
      Throws:
      FileNotFoundException