Interface ContentStreamAccess
-
- All Superinterfaces:
ContentAccess
,Serializable
- All Known Implementing Classes:
AudioResource
,ImageResource
,InternalResource
,VideoResource
public interface ContentStreamAccess extends ContentAccess
This interface enables access to arbitrary document content such as a PDF. It could be fetched from the database or it could be generated on the fly.
This extension of
ContentAccess
should be used to serve up large binary content (e.g. video), rather than requiring the entire byte array to be held in memory.- Since:
- 1.0.0
- Author:
- Yiannis Paschalidis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
getStream()
Retrieves the stream that make up the document content.-
Methods inherited from interface com.github.bordertech.wcomponents.ContentAccess
getBytes, getDescription, getMimeType
-
-
-
-
Method Detail
-
getStream
InputStream getStream() throws IOException
Retrieves the stream that make up the document content.- Returns:
- the stream containing the document content.
- Throws:
IOException
- if there is an error retrieving the content.
-
-