org.pentaho.reporting.libraries.repository.stream
public class StreamRepository extends Object implements Repository
Constructor Summary | |
---|---|
StreamRepository(InputStream inputStream, OutputStream outputStream, String contentName)
Creates a new repository that potentially allows both read and write access. | |
StreamRepository(InputStream inputStream, OutputStream outputStream)
Creates a new read/write repository with a hardcoded name for the input stream.
| |
StreamRepository(InputStream inputStream, String contentName)
Creates a new read-only repository.
| |
StreamRepository(OutputStream outputStream)
Creates a new write-only repository.
|
Method Summary | |
---|---|
String | getContentName()
Returns the optional content name by which the data in the input-stream should be accessed.
|
WrappedInputStream | getInputStream()
Returns the optional input stream.
|
MimeRegistry | getMimeRegistry()
Returns the mime registry for this repository.
|
WrappedOutputStream | getOutputStream()
Returns the optional output stream.
|
ContentLocation | getRoot()
Returns the content root of this repository.
|
Parameters: inputStream the inputstream from which to read from. outputStream the output stream to which to write to. contentName the content name by which the content should be accessed.
Deprecated: This constructor should not be used, as it hardcodes the filename for the input stream. Use one of the other constructors instead.
Creates a new read/write repository with a hardcoded name for the input stream.Parameters: inputStream the input stream from where to read the data (can be null). outputStream the output stream where data is written to (can be null).
Parameters: inputStream the input stream from where to read the data (can be null). contentName the content name by which the content should be accessed.
Parameters: outputStream the output stream to which to write to.
Returns: the content name or null, if this repository is write-only.
Returns: the stream or null, if this repository is write-only.
Returns: the mime-registry.
Returns: the stream or null, if this repository is read-only.
Returns: the content root.