org.bouncycastle.bcpg
public class ArmoredInputStream extends InputStream
Constructor Summary | |
---|---|
ArmoredInputStream(InputStream in)
Create a stream for reading a PGP armoured message, parsing up to a header
and then reading the data that follows.
| |
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.
|
Method Summary | |
---|---|
int | available() |
void | close() |
String | getArmorHeaderLine()
Return the armor header line (if there is one) |
String[] | getArmorHeaders()
Return the armor headers (the lines after the armor header line), |
boolean | isClearText() |
int | read() |
Parameters: in
Parameters: in hasHeaders true if headers are to be looked for, false otherwise.
Returns: the armor header line, null if none present.
Returns: an array of armor headers, null if there aren't any.
Returns: true if we are inside the clear text section of a PGP signed message.