Skip to content

Instantly share code, notes, and snippets.

@conorgriffin
Created December 18, 2019 15:53
Show Gist options
  • Save conorgriffin/a0cca48084d68ab0a995619d43c05758 to your computer and use it in GitHub Desktop.
Save conorgriffin/a0cca48084d68ab0a995619d43c05758 to your computer and use it in GitHub Desktop.
DeflaterOutputStream close method
/**
* Writes remaining compressed data to the output stream and closes the
* underlying stream.
* @exception IOException if an I/O error has occurred
*/
public void close() throws IOException {
if (!closed) {
finish();
if (usesDefaultDeflater)
def.end();
out.close();
closed = true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment