Skip to content

Instantly share code, notes, and snippets.

@conorgriffin
Created December 18, 2019 15:48
Show Gist options
  • Save conorgriffin/528696e3d7f1d6503ca8d46147ea10e3 to your computer and use it in GitHub Desktop.
Save conorgriffin/528696e3d7f1d6503ca8d46147ea10e3 to your computer and use it in GitHub Desktop.
DeflaterOutputStream constructor with default Deflater
/**
* Creates a new output stream with a default compressor and buffer size.
*
* <p>The new output stream instance is created as if by invoking
* the 2-argument constructor DeflaterOutputStream(out, false).
*
* @param out the output stream
*/
public DeflaterOutputStream(OutputStream out) {
this(out, false);
usesDefaultDeflater = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment