public class TendermintArmoredOutputStream
extends java.io.OutputStream
Note 1: close() needs to be called on an ArmoredOutputStream to write the final checksum. flush() will not do this as other classes assume it is always fine to call flush() - it is not though if the checksum gets output. Note 2: as multiple PGP blobs are often written to the same stream, close() does not close the underlying stream.
| Constructor and Description |
|---|
TendermintArmoredOutputStream(java.io.OutputStream out)
Constructs an armored output stream
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Note: close() does not close the underlying stream.
|
void |
flush() |
void |
setHeader(java.lang.String name,
java.lang.String value)
Set an additional header entry.
|
void |
write(int b) |
public TendermintArmoredOutputStream(java.io.OutputStream out)
out - the OutputStream to wrap.public void setHeader(java.lang.String name,
java.lang.String value)
name - the name of the header entry.value - the value of the header entry.public void write(int b)
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