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.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
public byte[] getDigest()