public class CheckCRC64DownloadInputStream
extends java.util.zip.CheckedInputStream
构造器和说明 |
---|
CheckCRC64DownloadInputStream(java.io.InputStream is,
java.util.zip.Checksum csum,
long total,
long serverCRC64,
java.lang.String requestId)
Constructs a new
CheckedInputStream on InputStream
is . |
限定符和类型 | 方法和说明 |
---|---|
long |
getClientCRC64() |
int |
read() |
int |
read(byte[] buffer,
int byteOffset,
int byteCount) |
public CheckCRC64DownloadInputStream(java.io.InputStream is, java.util.zip.Checksum csum, long total, long serverCRC64, java.lang.String requestId)
CheckedInputStream
on InputStream
is
. The checksum will be calculated using the algorithm
implemented by csum
.
Warning: passing a null source creates an invalid
CheckedInputStream
. All operations on such a stream will fail.
is
- the input stream to calculate checksum from.csum
- public int read() throws java.io.IOException
read
在类中 java.util.zip.CheckedInputStream
java.io.IOException
public int read(byte[] buffer, int byteOffset, int byteCount) throws java.io.IOException
read
在类中 java.util.zip.CheckedInputStream
java.io.IOException
public long getClientCRC64()