public class MsgDigestInputStream extends FilterInputStream
in| Constructor and Description |
|---|
MsgDigestInputStream(InputStream in,
MessageDigest md) |
MsgDigestInputStream(InputStream in,
String name) |
| Modifier and Type | Method and Description |
|---|---|
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 in class FilterInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic String digest()
public boolean markSupported()
markSupported in class FilterInputStreampublic void reset()
throws IOException
reset in class FilterInputStreamIOExceptionCopyright © 2017. All rights reserved.