public class Sha256OutputStream
extends java.io.OutputStream
| Constructor and Description |
|---|
Sha256OutputStream(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 Sha256OutputStream(java.io.OutputStream os)
public byte[] getDigest()
public void write(int value)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOException