Package org.pgpainless.util
Class ArmoredInputStreamFactory
java.lang.Object
org.pgpainless.util.ArmoredInputStreamFactory
Factory class for instantiating preconfigured
ArmoredInputStreams
.
get(InputStream)
will return an ArmoredInputStream
that is set up to properly detect CRC errors.-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bouncycastle.bcpg.ArmoredInputStream
get
(InputStream inputStream) Return an instance ofArmoredInputStream
which will detect CRC errors.
-
Method Details
-
get
@Nonnull public static org.bouncycastle.bcpg.ArmoredInputStream get(@Nonnull InputStream inputStream) throws IOException Return an instance ofArmoredInputStream
which will detect CRC errors.- Parameters:
inputStream
- input stream- Returns:
- armored input stream
- Throws:
IOException
- in case of an IO error
-