Package org.alfresco.repo.content
Class AbstractStreamAwareProxy
java.lang.Object
org.alfresco.repo.content.AbstractStreamAwareProxy
- Direct Known Subclasses:
StreamAwareContentReaderProxy,StreamAwareContentWriterProxy
Base class for stream aware proxies
- Author:
- Dmitry Velichkevich
-
Constructor Details
-
AbstractStreamAwareProxy
public AbstractStreamAwareProxy()
-
-
Method Details
-
getStream
- Returns:
Closeableinstance which represents channel or stream which uses channel
-
canBeClosed
protected abstract boolean canBeClosed()- Returns:
Booleanvalue 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
-