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 MD5InputStream extends FilterInputStream
in| Constructor and Description |
|---|
MD5InputStream(InputStream in)
Creates a MD5InputStream
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
hash()
Returns array of bytes representing hash of the stream as
finalized for the current state.
|
int |
read()
Read a byte of data.
|
int |
read(byte[] bytes,
int offset,
int length)
Reads into an array of bytes.
|
available, close, mark, markSupported, read, reset, skippublic MD5InputStream(InputStream in)
in - The input streampublic int read()
throws IOException
read in class FilterInputStreamIOExceptionFilterInputStreampublic int read(byte[] bytes,
int offset,
int length)
throws IOException
read in class FilterInputStreamIOExceptionpublic byte[] hash()
MD5.Final()Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.