org.apache.coyote.http11.filters
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.IOExceptionpublic void write(byte[] bytes,
int i,
int i1)
throws java.io.IOException
write in class java.util.zip.GZIPOutputStreamjava.io.IOExceptionpublic void write(int i)
throws java.io.IOException
write in class java.util.zip.DeflaterOutputStreamjava.io.IOExceptionpublic void write(byte[] bytes)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.FilterOutputStreamjava.io.IOExceptionprotected void deflate()
throws java.io.IOException
deflate in class java.util.zip.DeflaterOutputStreamjava.io.IOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.