Top Description Constructors Methods
org.apache.commons.compress.utils

public Class ChecksumCalculatingInputStream

extends CheckedInputStream
Class Inheritance
Annotations
@Deprecated
Imports
java.io.InputStream, java.util.Objects, java.util.zip.CheckedInputStream, .Checksum

Deprecated

Use CheckedInputStream.

Calculates the checksum of the data read.
Since
1.14

Constructor Summary

AccessConstructor and Description
public
ChecksumCalculatingInputStream(final Checksum
The checksum to update
checksum
,
final InputStream
The input stream to read.
inputStream
)

Constructs a new instance.

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the calculated checksum.
getValue
()

Returns the calculated checksum.
Inherited from java.util.zip.CheckedInputStream:
getChecksumreadreadskip

Constructor Detail

ChecksumCalculatingInputStreamback to summary
public ChecksumCalculatingInputStream(final Checksum checksum, final InputStream inputStream)

Constructs a new instance.

Parameters
checksum:Checksum

The checksum to update

inputStream:InputStream

The input stream to read.

Annotations
@Deprecated
@SuppressWarnings:resource

Method Detail

getValueback to summary
public long getValue()

Returns the calculated checksum.

Returns:long

the calculated checksum.

Annotations
@Deprecated