public class MsgDigestInputStream extends FilterInputStream
in| 构造器和说明 |
|---|
MsgDigestInputStream(InputStream in,
MessageDigest md) |
MsgDigestInputStream(InputStream in,
String name) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
digest()
获取摘要, 同时MessageDigest也被重置了
|
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
available, close, mark, skippublic MsgDigestInputStream(InputStream in, MessageDigest md)
public MsgDigestInputStream(InputStream in, String name)
public int read()
throws IOException
read 在类中 FilterInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read 在类中 FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read 在类中 FilterInputStreamIOExceptionpublic String digest()
public boolean markSupported()
markSupported 在类中 FilterInputStreampublic void reset()
throws IOException
reset 在类中 FilterInputStreamIOExceptionCopyright © 2014. All rights reserved.