|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.FilterInputStream
|
+--MD5InputStream
MD5InputStream is a subclass of FilterInputStream adding MD5 hashing of the read input.
| Field Summary | |
private MD5 |
md5
MD5 context |
| Fields inherited from class java.io.FilterInputStream |
in |
| Fields inherited from class java.io.InputStream |
SKIP_BUFFER_SIZE, skipBuffer |
| Constructor Summary | |
MD5InputStream(java.io.InputStream in)
Creates a MD5InputStream |
|
| Method Summary | |
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. |
| Methods inherited from class java.io.FilterInputStream |
available, close, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private MD5 md5
| Constructor Detail |
public MD5InputStream(java.io.InputStream in)
in - The input stream| Method Detail |
public int read()
throws java.io.IOException
read in class java.io.FilterInputStreamFilterInputStream
public int read(byte[] bytes,
int offset,
int length)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.lang.FilterInputStreampublic byte[] hash()
MD5.Final()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||