Package org.pgpainless.util
Class PGPUtilWrapper
- java.lang.Object
-
- org.pgpainless.util.PGPUtilWrapper
-
public final class PGPUtilWrapper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InputStream
getDecoderStream(BufferedInputStream buf)
PGPUtil.getDecoderStream(InputStream)
sometimes mistakens non-base64 data for base64 encoded data.
-
-
-
Method Detail
-
getDecoderStream
public static InputStream getDecoderStream(BufferedInputStream buf) throws IOException
PGPUtil.getDecoderStream(InputStream)
sometimes mistakens non-base64 data for base64 encoded data. This method expects aBufferedInputStream
which is being reset in case anIOException
is encountered. Therefore, we can properly handle non-base64 encoded data.- Parameters:
buf
- buffered input stream- Returns:
- input stream
- Throws:
IOException
- in case of an io error which is unrelated to base64 encoding
-
-