org.apache.commons.compress.compressors.gzip
Class GzipCompressorOutputStream
java.lang.Object
java.io.OutputStream
org.apache.commons.compress.compressors.CompressorOutputStream
org.apache.commons.compress.compressors.gzip.GzipCompressorOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public class GzipCompressorOutputStream
- extends CompressorOutputStream
Field Summary |
private java.util.zip.GZIPOutputStream |
out
|
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 |
out
private final java.util.zip.GZIPOutputStream out
GzipCompressorOutputStream
public GzipCompressorOutputStream(java.io.OutputStream outputStream)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(int b)
throws java.io.IOException
-
- Specified by:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
write
public void write(byte[] b)
throws java.io.IOException
-
- Overrides:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
- Since:
- Apache Commons Compress 1.1
write
public void write(byte[] b,
int from,
int length)
throws java.io.IOException
-
- Overrides:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
- Since:
- Apache Commons Compress 1.1
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.OutputStream
- Throws:
java.io.IOException