public class DeflateParameters extends Object
| Constructor and Description | 
|---|
| DeflateParameters() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getCompressionLevel()The compression level. | 
| void | setCompressionLevel(int compressionLevel)Sets the compression level. | 
| void | setWithZlibHeader(boolean zlibHeader)Sets the zlib header presence parameter. | 
| boolean | withZlibHeader()Whether or not the zlib header shall be written (when
 compressing) or expected (when decompressing). | 
public DeflateParameters()
public boolean withZlibHeader()
public void setWithZlibHeader(boolean zlibHeader)
This affects whether or not the zlib header will be written (when compressing) or expected (when decompressing).
zlibHeader - true if zlib header shall be writtenpublic int getCompressionLevel()
setCompressionLevel(int)public void setCompressionLevel(int compressionLevel)
compressionLevel - the compression level (between 0 and 9)Deflater.NO_COMPRESSION, 
Deflater.BEST_SPEED, 
Deflater.DEFAULT_COMPRESSION, 
Deflater.BEST_COMPRESSIONCopyright © 2018 The Apache Software Foundation. All rights reserved.