public class ArmoredOutputStream extends OutputStream
| Constructor and Description |
|---|
ArmoredOutputStream(OutputStream out) |
ArmoredOutputStream(OutputStream out,
Hashtable headers) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginClearText(int hashAlgorithm)
Start a clear text signed message.
|
void |
close()
Note: close does nor close the underlying stream.
|
void |
endClearText() |
void |
flush() |
void |
resetHeaders()
Reset the headers to only contain a Version string.
|
void |
setHeader(String name,
String value)
Set an additional header entry.
|
void |
write(int b) |
write, writepublic ArmoredOutputStream(OutputStream out)
public ArmoredOutputStream(OutputStream out, Hashtable headers)
public void setHeader(String name, String value)
name - the name of the header entry.value - the value of the header entry.public void resetHeaders()
public void beginClearText(int hashAlgorithm)
throws IOException
hashAlgorithm - IOExceptionpublic void endClearText()
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOException