|
Bouncy Castle Cryptography 1.51 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
org.bouncycastle.bcpg.ArmoredOutputStream
public class ArmoredOutputStream
Output stream that writes data in ASCII Armored format.
| Constructor Summary | |
|---|---|
ArmoredOutputStream(java.io.OutputStream out)
Constructs an armored output stream with default headers. |
|
ArmoredOutputStream(java.io.OutputStream out,
java.util.Hashtable headers)
Constructs an armored output stream with default and custom headers. |
|
| Method Summary | |
|---|---|
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(java.lang.String name,
java.lang.String value)
Set an additional header entry. |
void |
write(int b)
|
| Methods inherited from class java.io.OutputStream |
|---|
write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArmoredOutputStream(java.io.OutputStream out)
default headers.
out - the OutputStream to wrap.
public ArmoredOutputStream(java.io.OutputStream out,
java.util.Hashtable headers)
out - the OutputStream to wrap.headers - additional headers that add to or override the default
headers.| Method Detail |
|---|
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 resetHeaders()
public void beginClearText(int hashAlgorithm)
throws java.io.IOException
hashAlgorithm -
java.io.IOExceptionpublic void endClearText()
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException
|
Bouncy Castle Cryptography 1.51 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||