Package org.eclipse.rdf4j.common.io
Class GZipUtil
java.lang.Object
org.eclipse.rdf4j.common.io.GZipUtil
GZip-related utilities.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]
GZIP header magic number bytes, like found in a gzipped files, which are encoded in Intel format (i.e. little endian). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Check if a stream is a GZIP stream, by checking the first bytes of the stream.
-
Field Details
-
MAGIC_NUMBER
private static final byte[] MAGIC_NUMBERGZIP header magic number bytes, like found in a gzipped files, which are encoded in Intel format (i.e. little endian).
-
-
Constructor Details
-
GZipUtil
public GZipUtil()
-
-
Method Details
-
isGZipStream
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
-