public class HashOutputStream extends OutputStreamWrapper
OutputStream that writes to a MessageDigest. Unlike DigestOutputStream it
does not wrap an OutputStream to write through.| Modifier and Type | Field and Description |
|---|---|
private HashCreator |
hashGenerator |
| Constructor and Description |
|---|
HashOutputStream(HashCreator hashGenerator)
The constructor.
|
HashOutputStream(HashCreator hashGenerator,
OutputStream delegate)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
close, getDelegate, isClosed, requireNotClosed, writeflushprivate final HashCreator hashGenerator
public HashOutputStream(HashCreator hashGenerator)
hashGenerator - the HashCreator.public HashOutputStream(HashCreator hashGenerator, OutputStream delegate)
hashGenerator - the HashCreator.delegate - the delegate. May be null.public void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamWrapperIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamWrapperIOExceptionCopyright © 2001–2019 mmm-Team. All rights reserved.