public class FlushableGZIPOutputStream
extends java.util.zip.GZIPOutputStream
GZIPOutputStream
to workaround for a couple of long
standing JDK bugs
(Bug
4255743 and
Bug
4813885) so the GZIP'd output can be flushed.Constructor and Description |
---|
FlushableGZIPOutputStream(java.io.OutputStream os) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
deflate() |
void |
finish() |
void |
flush() |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int offset,
int length) |
void |
write(int i) |
public FlushableGZIPOutputStream(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public void write(byte[] bytes) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void write(byte[] bytes, int offset, int length) throws java.io.IOException
write
in class java.util.zip.GZIPOutputStream
java.io.IOException
public void write(int i) throws java.io.IOException
write
in class java.util.zip.DeflaterOutputStream
java.io.IOException
public void finish() throws java.io.IOException
finish
in class java.util.zip.GZIPOutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.util.zip.DeflaterOutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.util.zip.DeflaterOutputStream
java.io.IOException
protected void deflate() throws java.io.IOException
deflate
in class java.util.zip.DeflaterOutputStream
java.io.IOException