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.crc
buf, def
out
Constructor and Description |
---|
FlushableGZIPOutputStream(OutputStream os) |
public FlushableGZIPOutputStream(OutputStream os) throws IOException
IOException
public void write(byte[] bytes) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] bytes, int offset, int length) throws IOException
write
in class GZIPOutputStream
IOException
public void write(int i) throws IOException
write
in class DeflaterOutputStream
IOException
public void finish() throws IOException
finish
in class GZIPOutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class DeflaterOutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class DeflaterOutputStream
IOException
protected void deflate() throws IOException
deflate
in class DeflaterOutputStream
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.