public class GZipStream extends CompressedStream
GZip
compressedStream, DEFLATE, INFLATE, mode
skipBuffer
Constructor and Description |
---|
GZipStream(Stream stream,
int mode)
Creates a GZipStream object that may be used to read compressed data from the given stream, or to write compressed
data to the given stream.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
createDeflate(Stream stream) |
protected java.lang.Object |
createInflate(Stream stream) |
close, finalize, readBytes, writeBytes
asInputStream, asOutputStream, asStream, asStream, skipBytes, wrapInputStream, wrapInputStreamToStream, write, writeBytes, writeBytes, writeBytes
public GZipStream(Stream stream, int mode) throws IOException
stream
- input stream.mode
- its value must be either DEFLATE or INFLATE.IOException
protected java.lang.Object createDeflate(Stream stream)
createDeflate
in class CompressedStream
protected java.lang.Object createInflate(Stream stream)
createInflate
in class CompressedStream