Skip to content

Instantly share code, notes, and snippets.

@conorgriffin
Last active August 17, 2020 20:45
Show Gist options
  • Save conorgriffin/5087f72a39c548a925574882594b8a24 to your computer and use it in GitHub Desktop.
Save conorgriffin/5087f72a39c548a925574882594b8a24 to your computer and use it in GitHub Desktop.
The Fix
outputStream = new DeflaterOutputStream(outputStream, new Deflater(), BLOCK_SIZE) {
@Override
public void close() throws IOException {
try {
super.close();
} finally {
def.end();
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment