public class ChecksumVerifyingInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
ChecksumVerifyingInputStream(java.util.zip.Checksum checksum,
java.io.InputStream in,
long size,
long expectedChecksum) |
public ChecksumVerifyingInputStream(java.util.zip.Checksum checksum,
java.io.InputStream in,
long size,
long expectedChecksum)
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException - if the underlying stream throws or the
stream is exhausted and the Checksum doesn't match the expected
valuepublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException - if the underlying stream throws or the
stream is exhausted and the Checksum doesn't match the expected
valuepublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException - if the underlying stream throws or the
stream is exhausted and the Checksum doesn't match the expected
valuepublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOException