Class PGPUtilWrapper


  • public final class PGPUtilWrapper
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.InputStream getDecoderStream​(java.io.BufferedInputStream buf)
      PGPUtil.getDecoderStream(InputStream) sometimes mistakens non-base64 data for base64 encoded data.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getDecoderStream

        public static java.io.InputStream getDecoderStream​(java.io.BufferedInputStream buf)
                                                    throws java.io.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:
        java.io.IOException - in case of an io error which is unrelated to base64 encoding