## Uses of Interface
java.util.zip.Checksum

- Packages that use Checksum
  Package | Description
  --- | ---
  java.util.zip | Provides classes for reading and writing the standard ZIP and GZIP file formats.

- - ### Uses of Checksum in java.util.zip

    Classes in java.util.zip that implement Checksum
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `Adler32` A class that can be used to compute the Adler-32 checksum of a data stream.
    `class` | `CRC32` A class that can be used to compute the CRC-32 of a data stream.

    Methods in java.util.zip that return Checksum
    Modifier and Type | Method | Description
    --- | --- | ---
    `Checksum` | CheckedInputStream.`getChecksum()` Returns the Checksum for this input stream.
    `Checksum` | CheckedOutputStream.`getChecksum()` Returns the Checksum for this output stream.

    Constructors in java.util.zip with parameters of type Checksum
    Constructor | Description
    --- | ---
    `CheckedInputStream(InputStream in, Checksum cksum)` Creates an input stream using the specified Checksum.
    `CheckedOutputStream(OutputStream out, Checksum cksum)` Creates an output stream with the specified Checksum.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.