org.apache.hadoop.hbase.io.compress
Class ReusableStreamGzipCodec.ReusableGzipOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.hadoop.io.compress.CompressionOutputStream
          extended by org.apache.hadoop.io.compress.CompressorStream
              extended by 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.


Field Summary
 
Fields inherited from class org.apache.hadoop.io.compress.CompressorStream
buffer, closed, compressor
 
Fields inherited from class org.apache.hadoop.io.compress.CompressionOutputStream
out
 
Constructor Summary
ReusableStreamGzipCodec.ReusableGzipOutputStream(OutputStream out)
           
 
Method Summary
 void close()
           
 void finish()
           
 void flush()
           
 void resetState()
           
 void write(byte[] data, int offset, int length)
           
 void write(int b)
           
 
Methods inherited from class org.apache.hadoop.io.compress.CompressorStream
compress
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReusableStreamGzipCodec.ReusableGzipOutputStream

public ReusableStreamGzipCodec.ReusableGzipOutputStream(OutputStream out)
                                                 throws IOException
Throws:
IOException
Method Detail

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 © 2015 The Apache Software Foundation. All Rights Reserved.