|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.io.OutputStream
|
+--java.io.FilterOutputStream
|
+--MD5OutputStream
MD5OutputStream is a subclass of FilterOutputStream adding MD5 hashing of the read output.
| Field Summary | |
private MD5 |
md5
MD5 context |
| Fields inherited from class java.io.FilterOutputStream |
out |
| Constructor Summary | |
MD5OutputStream(java.io.OutputStream out)
Creates MD5OutputStream |
|
| Method Summary | |
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. |
| Methods inherited from class java.io.FilterOutputStream |
close, flush, write |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private MD5 md5
| Constructor Detail |
public MD5OutputStream(java.io.OutputStream out)
out - The output stream| Method Detail |
public void write(int b)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.lang.FilterOutputStream
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.lang.FilterOutputStreampublic byte[] hash()
MD5.Final()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||