Package org.alfresco.repo.content
Class AbstractStreamAwareProxy
- java.lang.Object
-
- org.alfresco.repo.content.AbstractStreamAwareProxy
-
- Direct Known Subclasses:
StreamAwareContentReaderProxy,StreamAwareContentWriterProxy
public abstract class AbstractStreamAwareProxy extends java.lang.ObjectBase class for stream aware proxies- Author:
- Dmitry Velichkevich
-
-
Constructor Summary
Constructors Constructor Description AbstractStreamAwareProxy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract booleancanBeClosed()protected abstract java.io.CloseablegetStream()voidrelease()Encapsulates the logic of releasing the captured stream or channel.
-
-
-
Method Detail
-
getStream
protected abstract java.io.Closeable 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
-
-