public final class HashingOutputStream extends WrappedOutputStream
OutputStream that maintains a hash of the data written to it.out| 构造器和说明 |
|---|
HashingOutputStream(StreamingHasher hasher,
OutputStream out)
Creates an output stream that hashes using the given
StreamingHasher, and forwards all
data written to it to the underlying OutputStream. |
public HashingOutputStream(StreamingHasher hasher, OutputStream out)
StreamingHasher, and forwards all
data written to it to the underlying OutputStream.
The OutputStream should not be written to before or after the hand-off.
Copyright © 2022. All rights reserved.