Wraps around another resource, delegates all quries to that other resource but uncompresses/compresses streams on the fly.
A no-arg constructor
Constructor with another resource to wrap.paramother the resource to wrap. super(other);
super(other);
Get the name of the compression method.returnthe string "GZip". return "GZip";
return "GZip";
Decompress on the fly using java.util.zip.GZIPInputStream.paramin the stream to wrap.returnthe wrapped stream.throwsIOException if there is a problem. return new GZIPInputStream(in);
return new GZIPInputStream(in);
Compress on the fly using java.util.zip.GZIPOutStream.paramout the stream to wrap.returnthe wrapped stream.throwsIOException if there is a problem. return new GZIPOutputStream(out);
return new GZIPOutputStream(out);