public class HashingOutputStream extends WrappedOutputStream
OutputStream that performs a hashing while
writing.IMessageDigestGeneratorout| Constructor and Description |
|---|
HashingOutputStream(OutputStream aSourceOS,
EMessageDigestAlgorithm eMDAlgorithm) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getDigest()
Get the message digest of this stream.
|
String |
toString() |
void |
write(int n) |
getWrappedOutputStreamclose, flush, write, writepublic HashingOutputStream(@Nonnull OutputStream aSourceOS, @Nonnull EMessageDigestAlgorithm eMDAlgorithm)
public void write(int n)
throws IOException
write in class FilterOutputStreamIOException@Nonnull public byte[] getDigest()
public String toString()
toString in class WrappedOutputStreamCopyright © 2014–2015 Philip Helger. All rights reserved.