Class GzipUtils
java.lang.Object
gaiasky.util.io.GzipUtils
Naive GZIP utilities class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanChecks if a file is gzipped.static booleanisGZipped(InputStream in) Checks if an input stream is gzipped.
-
Constructor Details
-
GzipUtils
public GzipUtils()
-
-
Method Details
-
isGZipped
Checks if an input stream is gzipped.- Parameters:
in- The input stream.- Returns:
- Whether the input stream is in Gzip format.
-
isGZipped
Checks if a file is gzipped.- Parameters:
f- The file.- Returns:
- Whether the file is in Gzip format or not.
-