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 © 2016. All rights reserved.