public class MD5OutputStream extends FilterOutputStream
out| Constructor and Description |
|---|
MD5OutputStream(OutputStream out)
Creates MD5OutputStream
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
hash()
Returns array of bytes representing hash of the stream as finalized
for the current state.
|
void |
write(byte[] b,
int off,
int len)
Writes a sub array of bytes.
|
void |
write(int b)
Writes a byte.
|
close, flush, writepublic MD5OutputStream(OutputStream out)
out - The output streampublic void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionpublic byte[] hash()
MD5.Final()Copyright © 2016. All rights reserved.