Created
December 18, 2019 16:30
-
-
Save conorgriffin/8d60a8f47daabbd02c6fe311e01e5e7f to your computer and use it in GitHub Desktop.
Alternative solution is to copy what GZIPOutputStream does
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public GZIPOutputStream(OutputStream out, int size, boolean syncFlush) | |
throws IOException | |
{ | |
super(out, new Deflater(Deflater.DEFAULT_COMPRESSION, true), | |
size, | |
syncFlush); | |
usesDefaultDeflater = true; | |
writeHeader(); | |
crc.reset(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment