| java.lang.Object java.io.InputStream org.bouncycastle.bcpg.ArmoredInputStream
ArmoredInputStream | public class ArmoredInputStream extends InputStream (Code) | | reader for Base64 armored objects - read the headers and then start returning
bytes when the data is reached. An IOException is thrown if the CRC check
fails.
|
Constructor Summary | |
public | ArmoredInputStream(InputStream in) Create a stream for reading a PGP armoured message, parsing up to a header
and then reading the data that follows. | public | ArmoredInputStream(InputStream in, boolean hasHeaders) Create an armoured input stream which will assume the data starts
straight away, or parse for headers first depending on the value of
hasHeaders. |
clearText | boolean clearText(Code) | | |
crcFound | boolean crcFound(Code) | | |
hasHeaders | boolean hasHeaders(Code) | | |
newLineFound | boolean newLineFound(Code) | | |
ArmoredInputStream | public ArmoredInputStream(InputStream in) throws IOException(Code) | | Create a stream for reading a PGP armoured message, parsing up to a header
and then reading the data that follows.
Parameters: in - |
ArmoredInputStream | public ArmoredInputStream(InputStream in, boolean hasHeaders) throws IOException(Code) | | Create an armoured input stream which will assume the data starts
straight away, or parse for headers first depending on the value of
hasHeaders.
Parameters: in - Parameters: hasHeaders - true if headers are to be looked for, false otherwise. |
getArmorHeaderLine | public String getArmorHeaderLine()(Code) | | Return the armor header line (if there is one)
the armor header line, null if none present. |
getArmorHeaders | public String[] getArmorHeaders()(Code) | | Return the armor headers (the lines after the armor header line),
an array of armor headers, null if there aren't any. |
isClearText | public boolean isClearText()(Code) | | true if we are inside the clear text section of a PGPsigned message. |
|
|