java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.aoapps.hodgepodge.md5.MD5OutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
MD5OutputStream is a subclass of FilterOutputStream adding MD5
hashing of the read output.
- Version:
- $Revision: 1.2 $
- Author:
- Santeri Paavolainen <santtu@cs.hut.fi>
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.FilterOutputStream
close, flush, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
MD5OutputStream
Creates MD5OutputStream.- Parameters:
out
- The output stream
-
-
Method Details
-
write
Writes a byte.- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
write
Writes a sub array of bytes.- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
hash
public byte[] hash()Returns array of bytes representing hash of the stream as finalized for the current state.- See Also:
-