public class MessageDigestInputStream extends WrappedInputStream
InputStream that performs a hashing while
reading.IMessageDigestGeneratorin| Constructor and Description |
|---|
MessageDigestInputStream(InputStream aSourceIS,
EMessageDigestAlgorithm eMDAlgorithm) |
MessageDigestInputStream(InputStream aSourceIS,
IMessageDigestGenerator aMDGen) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getAllDigestBytes()
Get the message digest of this stream.
|
int |
read() |
int |
read(byte[] b,
int nOffset,
int nLength) |
String |
toString() |
getWrappedInputStreamavailable, close, mark, markSupported, read, reset, skippublic MessageDigestInputStream(@Nonnull InputStream aSourceIS, @Nonnull EMessageDigestAlgorithm eMDAlgorithm)
public MessageDigestInputStream(@Nonnull InputStream aSourceIS, @Nonnull IMessageDigestGenerator aMDGen)
public int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int nOffset,
int nLength)
throws IOException
read in class FilterInputStreamIOException@Nonnull @ReturnsMutableCopy public byte[] getAllDigestBytes()
null.public String toString()
toString in class WrappedInputStreamCopyright © 2014–2016 Philip Helger. All rights reserved.