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 |
---|---|
protected void |
deflate() |
void |
flush() |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int i,
int i1)
Here we make sure we have received data, so that the header has been for
sure written to the output stream already.
|
void |
write(int i) |
public FlushableGZIPOutputStream(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public void write(byte[] bytes, int i, int i1) 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 write(byte[] bytes) throws java.io.IOException
write
in class java.io.FilterOutputStream
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
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.