public class ResourceDataInputSource extends InputSource
Constructor and Description |
---|
ResourceDataInputSource(ResourceData data,
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.
|
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, setSystemId
public ResourceDataInputSource(ResourceData data, ResourceManager caller) throws ResourceLoadingException
data
- the resource-data object holding the raw-data.caller
- the resource manager that is loading the current resource.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 InputSource
byteStream
- 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 InputSource
InputSource.getEncoding()
,
setByteStream(java.io.InputStream)
public ResourceData getData()
public long getVersion()
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.