Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
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 © 2000–2016 AO Industries, Inc.. All rights reserved.