public class HashingInputStream extends WrappedInputStream
InputStream that performs a hashing while
reading.IMessageDigestGenerator| Constructor and Description |
|---|
HashingInputStream(InputStream aSourceIS,
EMessageDigestAlgorithm eMDAlgorithm) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getDigest()
Get the message digest of this stream.
|
int |
read() |
int |
read(byte[] b,
int nOffset,
int nLength) |
String |
toString() |
available, close, getWrappedInputStream, mark, markSupported, read, reset, skippublic HashingInputStream(@Nonnull InputStream aSourceIS, @Nonnull EMessageDigestAlgorithm eMDAlgorithm)
public int read()
throws IOException
read in class WrappedInputStreamIOExceptionpublic int read(byte[] b,
int nOffset,
int nLength)
throws IOException
read in class WrappedInputStreamIOException@Nonnull public byte[] getDigest()
public String toString()
toString in class WrappedInputStreamCopyright © 2006–2014 phloc systems. All rights reserved.