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, skip
public MsgDigestInputStream(InputStream in, MessageDigest md)
public MsgDigestInputStream(InputStream in, String name)
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public String digest()
public boolean markSupported()
markSupported
in class FilterInputStream
public void reset() throws IOException
reset
in class FilterInputStream
IOException
Copyright © 2017. All rights reserved.