Class AES256SHA256Decoder.AES256SHA256DecoderInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    AES256SHA256Decoder

    private static final class AES256SHA256Decoder.AES256SHA256DecoderInputStream
    extends java.io.InputStream
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private AES256SHA256DecoderInputStream​(java.io.InputStream in, Coder coder, java.lang.String archiveName, byte[] passwordBytes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      private javax.crypto.CipherInputStream init()  
      int read()  
      int read​(byte[] b, int off, int len)  
      • Methods inherited from class java.io.InputStream

        available, mark, markSupported, read, reset, skip
      • Methods inherited from class java.lang.Object

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

      • in

        private final java.io.InputStream in
      • coder

        private final Coder coder
      • archiveName

        private final java.lang.String archiveName
      • passwordBytes

        private final byte[] passwordBytes
      • isInitialized

        private boolean isInitialized
      • cipherInputStream

        private javax.crypto.CipherInputStream cipherInputStream
    • Constructor Detail

      • AES256SHA256DecoderInputStream

        private AES256SHA256DecoderInputStream​(java.io.InputStream in,
                                               Coder coder,
                                               java.lang.String archiveName,
                                               byte[] passwordBytes)
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream
        Throws:
        java.io.IOException
      • init

        private javax.crypto.CipherInputStream init()
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException