Class AsyncOutputStream

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

    public abstract class AsyncOutputStream
    extends java.io.PipedOutputStream
    Since:
    3.1
    Author:
    Eike Stepper
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void asyncWrite​(java.io.InputStream in)  
      void close()  
      • Methods inherited from class java.io.PipedOutputStream

        connect, flush, write, write
      • Methods inherited from class java.io.OutputStream

        nullOutputStream, write
      • Methods inherited from class java.lang.Object

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

      • AsyncOutputStream

        public AsyncOutputStream()
                          throws java.io.IOException
        Throws:
        java.io.IOException
    • 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.PipedOutputStream
        Throws:
        java.io.IOException
      • asyncWrite

        protected abstract void asyncWrite​(java.io.InputStream in)
                                    throws java.io.IOException
        Throws:
        java.io.IOException