| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
org.apache.hadoop.io.compress.CompressionOutputStream
@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class CompressionOutputStream
A compression output stream.
| Field Summary | |
|---|---|
protected  OutputStream | 
out
The output stream to be compressed.  | 
| Constructor Summary | |
|---|---|
protected  | 
CompressionOutputStream(OutputStream out)
Create a compression output stream that writes the compressed bytes to the given stream.  | 
| Method Summary | |
|---|---|
 void | 
close()
 | 
abstract  void | 
finish()
Finishes writing compressed data to the output stream without closing the underlying stream.  | 
 void | 
flush()
 | 
abstract  void | 
resetState()
Reset the compression to the initial state.  | 
abstract  void | 
write(byte[] b,
           int off,
           int len)
Write compressed bytes to the stream.  | 
| Methods inherited from class java.io.OutputStream | 
|---|
write, write | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected final OutputStream out
| Constructor Detail | 
|---|
protected CompressionOutputStream(OutputStream out)
out - | Method Detail | 
|---|
public void close()
           throws IOException
close in interface Closeableclose in class OutputStreamIOException
public void flush()
           throws IOException
flush in interface Flushableflush in class OutputStreamIOException
public abstract void write(byte[] b,
                           int off,
                           int len)
                    throws IOException
write in class OutputStreamIOException
public abstract void finish()
                     throws IOException
IOException
public abstract void resetState()
                         throws IOException
IOException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||