Class ArmoredInputStreamFactory


  • public final class ArmoredInputStreamFactory
    extends java.lang.Object
    Factory class for instantiating preconfigured ArmoredInputStreams. get(InputStream) will return an ArmoredInputStream that is set up to properly detect CRC errors.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.bouncycastle.bcpg.ArmoredInputStream get​(java.io.InputStream inputStream)
      Return an instance of ArmoredInputStream which will detect CRC errors.
      • Methods inherited from class java.lang.Object

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

      • get

        @Nonnull
        public static org.bouncycastle.bcpg.ArmoredInputStream get​(@Nonnull
                                                                   java.io.InputStream inputStream)
                                                            throws java.io.IOException
        Return an instance of ArmoredInputStream which will detect CRC errors.
        Parameters:
        inputStream - input stream
        Returns:
        armored input stream
        Throws:
        java.io.IOException - in case of an IO error