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.ArmoredInputStreamget(InputStream inputStream) Return an instance ofArmoredInputStreamwhich will detect CRC errors.
-
Method Details
-
get
@Nonnull public static org.bouncycastle.bcpg.ArmoredInputStream get(@Nonnull InputStream inputStream) throws IOException Return an instance ofArmoredInputStreamwhich will detect CRC errors.- Parameters:
inputStream- input stream- Returns:
- armored input stream
- Throws:
IOException- in case of an IO error
-