Module java.base
Package java.util.zip

# Class Deflater

=
public class Deflater
extends java.lang.Object
implements java.lang.AutoCloseable

## Fields

- =
  public static final int BEST_COMPRESSION = 9
- =
  public static final int BEST_SPEED = 1
- =
  public static final int DEFAULT_COMPRESSION = -1
- =
  public static final int DEFAULT_STRATEGY = 0
- =
  public static final int DEFLATED = 8
- =
  public static final int FILTERED = 1
- =
  public static final int FULL_FLUSH = 3
- =
  public static final int HUFFMAN_ONLY = 2
- =
  public static final int NO_COMPRESSION = 0
- =
  public static final int NO_FLUSH = 0
- =
  public static final int SYNC_FLUSH = 2

## Constructors

- =
  public Deflater()
- =
  public Deflater(int arg0)
- =
  public Deflater(int arg0, boolean arg1)

## Methods

- =
  public void close()
- =
  public int deflate(byte[] arg0)
- =
  public int deflate(byte[] arg0, int arg1, int arg2)
- =
  public int deflate(byte[] arg0, int arg1, int arg2, int arg3)
- =
  public int deflate(java.nio.ByteBuffer arg0)
- =
  public int deflate(java.nio.ByteBuffer arg0, int arg1)
- =
  public void end()
- =
  public void finish()
- =
  public boolean finished()
- =
  public int getAdler()
- =
  public long getBytesRead()
- =
  public long getBytesWritten()
- =
  @Deprecated(since="23")
  public int getTotalIn()
- =
  @Deprecated(since="23")
  public int getTotalOut()
- =
  public boolean needsInput()
- =
  public void reset()
- =
  public void setDictionary(byte[] arg0)
- =
  public void setDictionary(byte[] arg0, int arg1, int arg2)
- =
  public void setDictionary(java.nio.ByteBuffer arg0)
- =
  public void setInput(byte[] arg0)
- =
  public void setInput(byte[] arg0, int arg1, int arg2)
- =
  public void setInput(java.nio.ByteBuffer arg0)
- =
  public void setLevel(int arg0)
- =
  public void setStrategy(int arg0)

## Summary

No differences.