Created
December 18, 2019 15:53
-
-
Save conorgriffin/a0cca48084d68ab0a995619d43c05758 to your computer and use it in GitHub Desktop.
DeflaterOutputStream close method
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
/** | |
* 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