Class PGPUtilWrapper

    • 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 a BufferedInputStream which is being reset in case an IOException 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