public class ArmoredInputStream extends InputStream
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
boolean |
isEndOfStream() |
int |
read() |
mark, markSupported, read, read, reset, skip
public ArmoredInputStream(InputStream in) throws IOException
in
- IOException
public ArmoredInputStream(InputStream in, boolean hasHeaders) throws IOException
in
- hasHeaders
- true if headers are to be looked for, false otherwise.IOException
public int available() throws IOException
available
in class InputStream
IOException
public boolean isClearText()
public boolean isEndOfStream()
public String getArmorHeaderLine()
public String[] getArmorHeaders()
public int read() throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 2018 BouncyCastle.org. All rights reserved.