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 FilterOutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class FilterOutputStream
IOException
public void write(byte[] b) throws IOException
write
in class FilterOutputStream
IOException
public byte[] getDigest()
Copyright © 2008–2015. All rights reserved.