public class ResourceDataInputSource extends InputSource
| Constructor and Description |
|---|
ResourceDataInputSource(org.pentaho.reporting.libraries.resourceloader.ResourceData data,
org.pentaho.reporting.libraries.resourceloader.ResourceManager caller)
Creates a new InputSource using the given resource-data and resource-manager as source.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getByteStream()
Get the byte stream for this input source.
|
org.pentaho.reporting.libraries.resourceloader.ResourceData |
getData()
Returns the resource-data object that provides the raw-data.
|
long |
getVersion()
Returns the version (changetracker) of this input source.
|
void |
setByteStream(InputStream byteStream)
Set the byte stream for this input source.
|
getCharacterStream, getEncoding, getPublicId, getSystemId, setCharacterStream, setEncoding, setPublicId, setSystemIdpublic ResourceDataInputSource(org.pentaho.reporting.libraries.resourceloader.ResourceData data,
org.pentaho.reporting.libraries.resourceloader.ResourceManager caller)
throws org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
data - the resource-data object holding the raw-data.caller - the resource manager that is loading the current resource.org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException - if an error occurs.InputSource.setPublicId(java.lang.String),
InputSource.setSystemId(java.lang.String),
setByteStream(java.io.InputStream),
InputSource.setCharacterStream(java.io.Reader),
InputSource.setEncoding(java.lang.String)public void setByteStream(InputStream byteStream)
setByteStream in class InputSourcebyteStream - A byte stream containing an XML document or other entity.public InputStream getByteStream()
The getEncoding method will return the character encoding for this byte stream, or null if unknown.
getByteStream in class InputSourceInputSource.getEncoding(),
setByteStream(java.io.InputStream)public org.pentaho.reporting.libraries.resourceloader.ResourceData getData()
public long getVersion()