Lines Matching refs:level
81 private int level, strategy;
97 * Compression level for no compression.
102 * Compression level for fastest compression.
107 * Compression level for best compression.
112 * Default compression level.
161 * Creates a new compressor using the specified compression level.
165 * @param level the compression level (0-9)
168 public Deflater(int level, boolean nowrap) {
169 this.level = level;
171 this.zsRef = new ZStreamRef(init(level, DEFAULT_STRATEGY, nowrap));
177 * Creates a new compressor using the specified compression level.
179 * @param level the compression level (0-9)
181 public Deflater(int level) {
182 this(level, false);
186 * Creates a new compressor with the default compression level.
294 * Sets the compression level to the specified value.
296 * <p> If the compression level is changed, the next invocation
298 * with the old level (and may be flushed); the new level will
301 * @param level the new compression level (0-9)
302 * @exception IllegalArgumentException if the compression level is invalid
304 public void setLevel(int level) {
305 if ((level < 0 || level > 9) && level != DEFAULT_COMPRESSION) {
306 throw new IllegalArgumentException("invalid compression level");
309 if (this.level != level) {
310 this.level = level;
520 * Keeps current compression level and strategy settings.
572 private native static long init(int level, int strategy, boolean nowrap);