public class MessageDigestOutputStream extends WrappedOutputStream
OutputStream that creates a message digest while
writing.IMessageDigestGeneratorout| Constructor and Description |
|---|
MessageDigestOutputStream(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 MessageDigestOutputStream(@Nonnull OutputStream aSourceOS, @Nonnull EMessageDigestAlgorithm eMDAlgorithm)
public void write(int n)
throws IOException
write in class FilterOutputStreamIOException@Nonnull @ReturnsMutableCopy public byte[] getDigest()
null.public String toString()
toString in class WrappedOutputStreamCopyright © 2014–2016 Philip Helger. All rights reserved.