Class AbstractStreamAwareProxy

java.lang.Object
org.alfresco.repo.content.AbstractStreamAwareProxy
Direct Known Subclasses:
StreamAwareContentReaderProxy, StreamAwareContentWriterProxy

public abstract class AbstractStreamAwareProxy extends Object
Base class for stream aware proxies
Author:
Dmitry Velichkevich
  • Constructor Details

    • AbstractStreamAwareProxy

      public AbstractStreamAwareProxy()
  • Method Details

    • getStream

      protected abstract 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