|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.InputSource
org.pentaho.reporting.libraries.xmlns.parser.ResourceDataInputSource
public class ResourceDataInputSource
A SAX InputSource implementation that reads its data from a LibLoader ResourceData object.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
java.io.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(java.io.InputStream byteStream)
Set the byte stream for this input source. |
Methods inherited from class org.xml.sax.InputSource |
---|
getCharacterStream, getEncoding, getPublicId, getSystemId, setCharacterStream, setEncoding, setPublicId, setSystemId |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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)
Method Detail |
---|
public void setByteStream(java.io.InputStream byteStream)
setByteStream
in class org.xml.sax.InputSource
byteStream
- A byte stream containing an XML document or
other entity.public java.io.InputStream getByteStream()
The getEncoding method will return the character encoding for this byte stream, or null if unknown.
getByteStream
in class org.xml.sax.InputSource
InputSource.getEncoding()
,
setByteStream(java.io.InputStream)
public org.pentaho.reporting.libraries.resourceloader.ResourceData getData()
public long getVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |