java.util.zip
public class CheckedInputStream extends FilterInputStream
UNKNOWN: May 17, 1999
Constructor Summary | |
---|---|
CheckedInputStream(InputStream in, Checksum sum)
Creates a new CheckInputStream on top of the supplied OutputStream
using the supplied Checksum. |
Method Summary | |
---|---|
Checksum | getChecksum()
Returns the Checksum object used. |
int | read()
Reads one byte, updates the checksum and returns the read byte
(or -1 when the end of file was reached). |
int | read(byte[] buf, int off, int len)
Reads at most len bytes in the supplied buffer and updates the checksum
with it. |
long | skip(long n)
Skips n bytes by reading them in a temporary buffer and updating the
the checksum with that buffer. |
getChecksum.getValue()
.