public class DigestOutputStream
extends java.io.OutputStream
Constructor and Description |
---|
DigestOutputStream(java.io.OutputStream os)
Creates the output
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the stream
|
void |
flush() |
byte[] |
getDigest() |
void |
write(byte[] buffer,
int offset,
int length) |
void |
write(int value) |
public DigestOutputStream(java.io.OutputStream os)
public byte[] getDigest()
public void write(int value) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] buffer, int offset, int length) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
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