public class HashingOutputStream extends WrappedOutputStream
OutputStream that performs a hashing while
writing.IMessageDigestGenerator| 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(byte[] aBuf,
int nOfs,
int nLength) |
void |
write(int n) |
close, flush, getWrappedOutputStream, writepublic HashingOutputStream(@Nonnull OutputStream aSourceOS, @Nonnull EMessageDigestAlgorithm eMDAlgorithm)
public void write(int n)
throws IOException
write in class WrappedOutputStreamIOExceptionpublic void write(byte[] aBuf,
int nOfs,
int nLength)
throws IOException
write in class WrappedOutputStreamIOException@Nonnull public byte[] getDigest()
public String toString()
toString in class WrappedOutputStreamCopyright © 2006–2014 phloc systems. All rights reserved.