public interface ContentProducer
AbstractStructureProvider
base implementation.
Clients may implement this interface.
Modifier and Type | Method and Description |
---|---|
InputStream |
getContents(Map<?,?> options)
Returns the underlying content as a stream.
|
InputStream getContents(Map<?,?> options) throws IOException, UnsupportedOperationException
The options configures the content to retrieve. Options can typically contain a "Content-Type"
property to request data in a
specific format.
options
- properties describing the content to retrieve.IOException
- if the content cannot be read.UnsupportedOperationException
- if the content cannot be read for the specified options.
This can typically happen if a specific Content-Type
is requested
and the producer does not support such format.