public class DeflateParameters
extends java.lang.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 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_COMPRESSION
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"