org.apache.hadoop.io.compress
Class GzipCodec.GzipOutputStream
java.lang.Object
java.io.OutputStream
org.apache.hadoop.io.compress.CompressionOutputStream
org.apache.hadoop.io.compress.DefaultCodec.DefaultCompressionOutputStream
org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
- Enclosing class:
- GzipCodec
protected static class GzipCodec.GzipOutputStream
- extends DefaultCodec.DefaultCompressionOutputStream
A bridge that wraps around a DeflaterOutputStream to make it
a CompressionOutputStream.
- Author:
- Owen O'Malley
Method Summary |
void |
resetState()
Reset the compression to the initial state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GzipCodec.GzipOutputStream
public GzipCodec.GzipOutputStream(OutputStream out)
throws IOException
- Throws:
IOException
GzipCodec.GzipOutputStream
protected GzipCodec.GzipOutputStream(DefaultCodec.DefaultCompressionOutputStream out)
- Allow children types to put a different type in here.
- Parameters:
out
- the Deflater stream to use
resetState
public void resetState()
throws IOException
- Description copied from class:
CompressionOutputStream
- Reset the compression to the initial state.
Does not reset the underlying stream.
- Overrides:
resetState
in class DefaultCodec.DefaultCompressionOutputStream
- Throws:
IOException
Copyright © 2006 The Apache Software Foundation