Class AbstractStreamBridge

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
    Direct Known Subclasses:
    InMemoryCachingStreamBridge, TempFileCachingStreamBridge

    abstract class AbstractStreamBridge
    extends java.io.FilterOutputStream
    Provides an InputStream to read all data written to this OutputStream.
    Since:
    1.3
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.InputStream inputStream  
      private java.lang.Object inputStreamLock  
      • Fields inherited from class java.io.FilterOutputStream

        out
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) abstract java.io.InputStream createInputStream()
      Creates the input view.
      (package private) java.io.InputStream getInputStream()
      Provides the input view.
      (package private) void stop()
      Closes input and output and releases all associated resources.
      • Methods inherited from class java.io.FilterOutputStream

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

        nullOutputStream
      • Methods inherited from class java.lang.Object

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

      • inputStream

        private java.io.InputStream inputStream
      • inputStreamLock

        private final java.lang.Object inputStreamLock
    • Constructor Detail

      • AbstractStreamBridge

        protected AbstractStreamBridge()
      • AbstractStreamBridge

        protected AbstractStreamBridge​(java.io.OutputStream outputStream)
    • Method Detail

      • createInputStream

        abstract java.io.InputStream createInputStream()
                                                throws java.io.IOException
        Creates the input view.
        Throws:
        java.io.IOException
      • getInputStream

        java.io.InputStream getInputStream()
                                    throws java.io.IOException
        Provides the input view.
        Throws:
        java.io.IOException
      • stop

        void stop()
           throws java.io.IOException
        Closes input and output and releases all associated resources.
        Throws:
        java.io.IOException