Package org.jets3t.service.io
Class GZipInflatingOutputStream
java.lang.Object
java.io.OutputStream
org.jets3t.service.io.GZipInflatingOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
,OutputStreamWrapper
Output stream that wraps another stream and inflates (de-compresses) the underlying stream's
data on-the-fly. This class provides only a basic implementation of GZip functionality.
- Author:
- James Murty
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Field Details
-
GZIP_MAGIC
public static final int GZIP_MAGIC- See Also:
-
-
Constructor Details
-
GZipInflatingOutputStream
- Throws:
IOException
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
getWrappedOutputStream
- Specified by:
getWrappedOutputStream
in interfaceOutputStreamWrapper
- Returns:
- the underlying input stream wrapped by this class.
-