Class Encryptor.EncryptorWrapperStream

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

    protected static class Encryptor.EncryptorWrapperStream
    extends java.io.FilterOutputStream
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected EncryptorWrapperStream​(java.io.OutputStream ciphertext, Encryptor.SigningOutputStream signer, java.util.List<? extends java.io.OutputStream> wrappers, boolean closeOriginal)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      protected void finish()  
      void write​(byte[] b)  
      void write​(byte[] b, int off, int len)  
      void write​(int b)  
      • Methods inherited from class java.io.FilterOutputStream

        flush
      • Methods inherited from class java.lang.Object

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

      • finished

        protected final java.util.concurrent.atomic.AtomicBoolean finished
      • stack

        protected final java.util.List<? extends java.io.OutputStream> stack
      • oneByte

        protected final byte[] oneByte
      • closeInitialStream

        protected final boolean closeInitialStream
    • Constructor Detail

      • EncryptorWrapperStream

        protected EncryptorWrapperStream​(java.io.OutputStream ciphertext,
                                         Encryptor.SigningOutputStream signer,
                                         java.util.List<? extends java.io.OutputStream> wrappers,
                                         boolean closeOriginal)
    • Method Detail

      • write

        public void write​(int b)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b,
                          int off,
                          int len)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • 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.FilterOutputStream
        Throws:
        java.io.IOException
      • finish

        protected void finish()
                       throws java.io.IOException
        Throws:
        java.io.IOException