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.
Modifier and Type | Method and Description |
---|---|
InputStream |
getStream()
Retrieves the stream that make up the document content.
|
getBytes, getDescription, getMimeType
InputStream getStream() throws IOException
IOException
- if there is an error retrieving the content.Copyright © 2021. All rights reserved.