Closeable, Flushable, AutoCloseablepublic class DigesterOutputStream extends OutputStream
| Constructor | Description |
|---|---|
DigesterOutputStream(MessageDigest md) |
Creates a DigesterOutputStream.
|
DigesterOutputStream(MessageDigest md,
boolean buffer) |
Creates a DigesterOutputStream.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
byte[] |
getDigestValue() |
|
InputStream |
getInputStream() |
|
void |
write(byte[] input,
int offset,
int len) |
|
void |
write(int input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, writepublic DigesterOutputStream(MessageDigest md)
md - the MessageDigestpublic DigesterOutputStream(MessageDigest md, boolean buffer)
md - the MessageDigestbuffer - if true, caches the input bytespublic void write(int input)
write in class OutputStreampublic void write(byte[] input,
int offset,
int len)
write in class OutputStreampublic byte[] getDigestValue()
public InputStream getInputStream()
public void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class OutputStreamIOExceptionCopyright © 2000–2018 The Apache Software Foundation. All rights reserved.