public class FlushableGZIPOutputStream extends 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.crcbuf, defout| Constructor and Description |
|---|
FlushableGZIPOutputStream(OutputStream os) |
public FlushableGZIPOutputStream(OutputStream os) throws IOException
IOExceptionpublic void write(byte[] bytes)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] bytes,
int offset,
int length)
throws IOException
write in class GZIPOutputStreamIOExceptionpublic void write(int i)
throws IOException
write in class DeflaterOutputStreamIOExceptionpublic void finish()
throws IOException
finish in class GZIPOutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class DeflaterOutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class DeflaterOutputStreamIOExceptionprotected void deflate()
throws IOException
deflate in class DeflaterOutputStreamIOExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.