org.apache.hadoop.hbase.io.compress
Class ReusableStreamGzipCodec.ReusableGzipOutputStream
java.lang.Object
java.io.OutputStream
org.apache.hadoop.io.compress.CompressionOutputStream
org.apache.hadoop.io.compress.CompressorStream
org.apache.hadoop.hbase.io.compress.ReusableStreamGzipCodec.ReusableGzipOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
- Enclosing class:
- ReusableStreamGzipCodec
protected static class ReusableStreamGzipCodec.ReusableGzipOutputStream
- extends org.apache.hadoop.io.compress.CompressorStream
A bridge that wraps around a DeflaterOutputStream to make it a
CompressionOutputStream.
| Fields inherited from class org.apache.hadoop.io.compress.CompressorStream |
buffer, closed, compressor |
| Fields inherited from class org.apache.hadoop.io.compress.CompressionOutputStream |
out |
| Methods inherited from class org.apache.hadoop.io.compress.CompressorStream |
compress |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReusableStreamGzipCodec.ReusableGzipOutputStream
public ReusableStreamGzipCodec.ReusableGzipOutputStream(OutputStream out)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class org.apache.hadoop.io.compress.CompressorStream
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush in interface Flushable- Overrides:
flush in class org.apache.hadoop.io.compress.CompressionOutputStream
- Throws:
IOException
write
public void write(int b)
throws IOException
- Overrides:
write in class org.apache.hadoop.io.compress.CompressorStream
- Throws:
IOException
write
public void write(byte[] data,
int offset,
int length)
throws IOException
- Overrides:
write in class org.apache.hadoop.io.compress.CompressorStream
- Throws:
IOException
finish
public void finish()
throws IOException
- Overrides:
finish in class org.apache.hadoop.io.compress.CompressorStream
- Throws:
IOException
resetState
public void resetState()
throws IOException
- Overrides:
resetState in class org.apache.hadoop.io.compress.CompressorStream
- Throws:
IOException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.