类 MD5DigestCalculatingInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.baidubce.util.MD5DigestCalculatingInputStream
-
- 所有已实现的接口:
Closeable,AutoCloseable
public class MD5DigestCalculatingInputStream extends FilterInputStream
Simple InputStream wrapper that examines the wrapped stream's contents as they are read and calculates and MD5 digest.
-
-
字段概要
-
从类继承的字段 java.io.FilterInputStream
in
-
-
构造器概要
构造器 构造器 说明 MD5DigestCalculatingInputStream(InputStream in, long len)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 byte[]getMd5Digest()intread()intread(byte[] b, int off, int len)voidreset()Resets the wrapped input stream and the in progress message digest.-
从类继承的方法 java.io.FilterInputStream
available, close, mark, markSupported, read, skip
-
从类继承的方法 java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
构造器详细资料
-
MD5DigestCalculatingInputStream
public MD5DigestCalculatingInputStream(InputStream in, long len) throws NoSuchAlgorithmException
-
-
方法详细资料
-
getMd5Digest
public byte[] getMd5Digest()
-
reset
public void reset() throws IOExceptionResets the wrapped input stream and the in progress message digest.- 覆盖:
reset在类中FilterInputStream- 抛出:
IOException- 另请参阅:
InputStream.reset()
-
read
public int read() throws IOException- 覆盖:
read在类中FilterInputStream- 抛出:
IOException- 另请参阅:
InputStream.read()
-
read
public int read(byte[] b, int off, int len) throws IOException- 覆盖:
read在类中FilterInputStream- 抛出:
IOException- 另请参阅:
InputStream.read(byte[], int, int)
-
-