Class OutputStreamFlushReceiver

  • All Implemented Interfaces:
    FlushReceiver

    final class OutputStreamFlushReceiver
    extends java.lang.Object
    implements FlushReceiver
    Facade flushing OutputStream and isolating the stream in client.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.OutputStream outputStream  
    • Constructor Summary

      Constructors 
      Constructor Description
      OutputStreamFlushReceiver​(java.io.OutputStream outputStream)
      Wraps an output stream in order to delegate a flush.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void flush()
      Performs a flush, releasing any buffered resources.
      • Methods inherited from class java.lang.Object

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

      • outputStream

        private final java.io.OutputStream outputStream
    • Constructor Detail

      • OutputStreamFlushReceiver

        OutputStreamFlushReceiver​(java.io.OutputStream outputStream)
        Wraps an output stream in order to delegate a flush.
    • Method Detail

      • flush

        public void flush()
                   throws java.io.IOException
        Description copied from interface: FlushReceiver
        Performs a flush, releasing any buffered resources.
        Specified by:
        flush in interface FlushReceiver
        Throws:
        java.io.IOException - in case the flush operation failed