public class ArmoredInputStream
extends java.io.InputStream
Constructor and Description |
---|
ArmoredInputStream(java.io.InputStream in)
Create a stream for reading a PGP armoured message, parsing up to a header
and then reading the data that follows.
|
ArmoredInputStream(java.io.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.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
java.lang.String |
getArmorHeaderLine()
Return the armor header line (if there is one)
|
java.lang.String[] |
getArmorHeaders()
Return the armor headers (the lines after the armor header line),
|
boolean |
isClearText() |
boolean |
isEndOfStream() |
int |
read() |
public ArmoredInputStream(java.io.InputStream in) throws java.io.IOException
in
- java.io.IOException
public ArmoredInputStream(java.io.InputStream in, boolean hasHeaders) throws java.io.IOException
in
- hasHeaders
- true if headers are to be looked for, false otherwise.java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public boolean isClearText()
public boolean isEndOfStream()
public java.lang.String getArmorHeaderLine()
public java.lang.String[] getArmorHeaders()
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException