Class StreamBridge

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

    abstract class StreamBridge
    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 input  
      private java.lang.Object inputLock  
      • Fields inherited from class java.io.FilterOutputStream

        out
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected StreamBridge()  
      protected StreamBridge​(java.io.OutputStream out)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.io.InputStream getInput()
      Provides the input view.
      (package private) abstract java.io.InputStream getInputView()
      Creates 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

      • input

        private java.io.InputStream input
      • inputLock

        private final java.lang.Object inputLock
    • Constructor Detail

      • StreamBridge

        protected StreamBridge​(java.io.OutputStream out)
      • StreamBridge

        protected StreamBridge()
    • Method Detail

      • getInput

        java.io.InputStream getInput()
                              throws java.io.IOException
        Provides the input view.
        Throws:
        java.io.IOException
      • getInputView

        abstract java.io.InputStream getInputView()
                                           throws java.io.IOException
        Creates 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