org.apache.commons.compress.compressors.gzip
Class GzipCompressorOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.commons.compress.compressors.CompressorOutputStream
          extended by org.apache.commons.compress.compressors.gzip.GzipCompressorOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class GzipCompressorOutputStream
extends CompressorOutputStream


Constructor Summary
GzipCompressorOutputStream(OutputStream outputStream)
           
 
Method Summary
 void close()
           
 void write(byte[] b)
          
 void write(byte[] b, int from, int length)
          
 void write(int b)
          
 
Methods inherited from class java.io.OutputStream
flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GzipCompressorOutputStream

public GzipCompressorOutputStream(OutputStream outputStream)
                           throws IOException
Throws:
IOException
Method Detail

write

public void write(int b)
           throws IOException

Specified by:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] b)
           throws IOException

Overrides:
write in class OutputStream
Throws:
IOException
Since:
1.1

write

public void write(byte[] b,
                  int from,
                  int length)
           throws IOException

Overrides:
write in class OutputStream
Throws:
IOException
Since:
1.1

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class OutputStream
Throws:
IOException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.