Class AbstractStreamAwareProxy

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract boolean canBeClosed()  
      protected abstract java.io.Closeable getStream()  
      void release()
      Encapsulates the logic of releasing the captured stream or channel.
      • Methods inherited from class java.lang.Object

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

      • AbstractStreamAwareProxy

        public AbstractStreamAwareProxy()
    • Method Detail

      • getStream

        protected abstract java.io.Closeable getStream()
        Returns:
        Closeable instance which represents channel or stream which uses channel
      • canBeClosed

        protected abstract boolean canBeClosed()
        Returns:
        Boolean value which determines whether stream can (true) or cannot ((false)) be closed
      • release

        public void release()
        Encapsulates the logic of releasing the captured stream or channel. It is expected that each resource object shares the same channel