# Class JZlib

java.lang.Object
com.codename1.io.gzip.JZlib

public final class JZlib extends Object

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `DEF_WBITS`
  `static final int`
  `MAX_WBITS`
  `static final com.codename1.io.gzip.JZlib.WrapperType`
  `W_ANY`
  `static final com.codename1.io.gzip.JZlib.WrapperType`
  `W_GZIP`
  `static final com.codename1.io.gzip.JZlib.WrapperType`
  `W_NONE`
  `static final com.codename1.io.gzip.JZlib.WrapperType`
  `W_ZLIB`
  `static final byte`
  `Z_ASCII`
  `static final int`
  `Z_BEST_COMPRESSION`
  `static final int`
  `Z_BEST_SPEED`
  `static final byte`
  `Z_BINARY`
  `static final int`
  `Z_BUF_ERROR`
  `static final int`
  `Z_DATA_ERROR`
  `static final int`
  `Z_DEFAULT_COMPRESSION`
  `static final int`
  `Z_DEFAULT_STRATEGY`
  `static final int`
  `Z_ERRNO`
  `static final int`
  `Z_FILTERED`
  `static final int`
  `Z_FINISH`
  `static final int`
  `Z_FULL_FLUSH`
  `static final int`
  `Z_HUFFMAN_ONLY`
  `static final int`
  `Z_MEM_ERROR`
  `static final int`
  `Z_NEED_DICT`
  `static final int`
  `Z_NO_COMPRESSION`
  `static final int`
  `Z_NO_FLUSH`
  `static final int`
  `Z_OK`
  `static final int`
  `Z_PARTIAL_FLUSH`
  `static final int`
  `Z_STREAM_END`
  `static final int`
  `Z_STREAM_ERROR`
  `static final int`
  `Z_SYNC_FLUSH`
  `static final byte`
  `Z_UNKNOWN`
  `static final int`
  `Z_VERSION_ERROR`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static long`
  `adler32_combine(long adler1, long adler2, long len2)`
  Deprecated.
  `static long`
  `adler32Combine(long adler1, long adler2, long len2)`
  `static long`
  `crc32_combine(long crc1, long crc2, long len2)`
  Deprecated.
  `static long`
  `crc32Combine(long crc1, long crc2, long len2)`
  `static String`
  `version()`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### MAX_WBITS

    public static final int MAX_WBITS
    See Also:
      - Constant Field Values

  - ### DEF_WBITS

    public static final int DEF_WBITS
    See Also:
      - Constant Field Values

  - ### W_NONE

    public static final com.codename1.io.gzip.JZlib.WrapperType W_NONE

  - ### W_ZLIB

    public static final com.codename1.io.gzip.JZlib.WrapperType W_ZLIB

  - ### W_GZIP

    public static final com.codename1.io.gzip.JZlib.WrapperType W_GZIP

  - ### W_ANY

    public static final com.codename1.io.gzip.JZlib.WrapperType W_ANY

  - ### Z_NO_COMPRESSION

    public static final int Z_NO_COMPRESSION
    See Also:
      - Constant Field Values

  - ### Z_BEST_SPEED

    public static final int Z_BEST_SPEED
    See Also:
      - Constant Field Values

  - ### Z_BEST_COMPRESSION

    public static final int Z_BEST_COMPRESSION
    See Also:
      - Constant Field Values

  - ### Z_DEFAULT_COMPRESSION

    public static final int Z_DEFAULT_COMPRESSION
    See Also:
      - Constant Field Values

  - ### Z_FILTERED

    public static final int Z_FILTERED
    See Also:
      - Constant Field Values

  - ### Z_HUFFMAN_ONLY

    public static final int Z_HUFFMAN_ONLY
    See Also:
      - Constant Field Values

  - ### Z_DEFAULT_STRATEGY

    public static final int Z_DEFAULT_STRATEGY
    See Also:
      - Constant Field Values

  - ### Z_NO_FLUSH

    public static final int Z_NO_FLUSH
    See Also:
      - Constant Field Values

  - ### Z_PARTIAL_FLUSH

    public static final int Z_PARTIAL_FLUSH
    See Also:
      - Constant Field Values

  - ### Z_SYNC_FLUSH

    public static final int Z_SYNC_FLUSH
    See Also:
      - Constant Field Values

  - ### Z_FULL_FLUSH

    public static final int Z_FULL_FLUSH
    See Also:
      - Constant Field Values

  - ### Z_FINISH

    public static final int Z_FINISH
    See Also:
      - Constant Field Values

  - ### Z_OK

    public static final int Z_OK
    See Also:
      - Constant Field Values

  - ### Z_STREAM_END

    public static final int Z_STREAM_END
    See Also:
      - Constant Field Values

  - ### Z_NEED_DICT

    public static final int Z_NEED_DICT
    See Also:
      - Constant Field Values

  - ### Z_ERRNO

    public static final int Z_ERRNO
    See Also:
      - Constant Field Values

  - ### Z_STREAM_ERROR

    public static final int Z_STREAM_ERROR
    See Also:
      - Constant Field Values

  - ### Z_DATA_ERROR

    public static final int Z_DATA_ERROR
    See Also:
      - Constant Field Values

  - ### Z_MEM_ERROR

    public static final int Z_MEM_ERROR
    See Also:
      - Constant Field Values

  - ### Z_BUF_ERROR

    public static final int Z_BUF_ERROR
    See Also:
      - Constant Field Values

  - ### Z_VERSION_ERROR

    public static final int Z_VERSION_ERROR
    See Also:
      - Constant Field Values

  - ### Z_BINARY

    public static final byte Z_BINARY
    See Also:
      - Constant Field Values

  - ### Z_ASCII

    public static final byte Z_ASCII
    See Also:
      - Constant Field Values

  - ### Z_UNKNOWN

    public static final byte Z_UNKNOWN
    See Also:
      - Constant Field Values

- ## Method Details

  - ### version

    public static String version()

  - ### adler32_combine

    @Deprecated public static long adler32_combine(long adler1, long adler2, long len2)
    Deprecated.

    ###### Deprecated

    Use `long, long)`.

  - ### adler32Combine

    public static long adler32Combine(long adler1, long adler2, long len2)

  - ### crc32_combine

    @Deprecated public static long crc32_combine(long crc1, long crc2, long len2)
    Deprecated.

    ###### Deprecated

    Use `long, long)`.

  - ### crc32Combine

    public static long crc32Combine(long crc1, long crc2, long len2)