public class DigestOutputStream extends FilterOutputStream
out| Constructor and Description |
|---|
DigestOutputStream(MessageDigest md) |
DigestOutputStream(MessageDigest md,
OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
byte[] |
getDigest() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int arg0) |
public DigestOutputStream(MessageDigest md)
public DigestOutputStream(MessageDigest md, OutputStream out)
public void write(int arg0)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class FilterOutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic byte[] getDigest()
Copyright © 2008–2015. All rights reserved.