CheckedInputStream

public class CheckedInputStream extends FilterInputStream

An input stream that also maintains a checksum of the data being read. The checksum can then be used to verify the integrity of the input data.

See Also

Inherited Field Summary

Public Constructor Summary

CheckedInputStream(InputStream in, Checksum cksum)
Creates an input stream using the specified Checksum.

Public Method Summary

Checksum
getChecksum()
Returns the Checksum for this input stream.
int
read()
Reads a byte.
int
read(byte[] buf, int off, int len)
Reads into an array of bytes.
long
skip(long n)
Skips specified number of bytes of input.

Inherited Method Summary