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, write
public 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
- IOException
public void endClearText()
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException