class HttpEntityDigester
extends java.io.OutputStream
| Modifier and Type | Field and Description |
|---|---|
private boolean |
closed |
private byte[] |
digest |
private java.security.MessageDigest |
digester |
| Constructor and Description |
|---|
HttpEntityDigester(java.security.MessageDigest digester) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
getDigest() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
private final java.security.MessageDigest digester
private boolean closed
private byte[] digest
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic byte[] getDigest()