Class ResourceDataInputSource

java.lang.Object
org.xml.sax.InputSource
org.pentaho.reporting.libraries.xmlns.parser.ResourceDataInputSource

public class ResourceDataInputSource extends InputSource
A SAX InputSource implementation that reads its data from a LibLoader ResourceData object.
Author:
Thomas Morgner
  • Constructor Details

  • Method Details

    • setByteStream

      public void setByteStream(InputStream byteStream)
      Set the byte stream for this input source.
      Overrides:
      setByteStream in class InputSource
      Parameters:
      byteStream - A byte stream containing an XML document or other entity.
    • getByteStream

      public InputStream getByteStream()
      Get the byte stream for this input source.

      The getEncoding method will return the character encoding for this byte stream, or null if unknown.

      Overrides:
      getByteStream in class InputSource
      Returns:
      The byte stream, or null if none was supplied.
      See Also:
    • getData

      public org.pentaho.reporting.libraries.resourceloader.ResourceData getData()
      Returns the resource-data object that provides the raw-data.
      Returns:
      the resource-data object.
    • getVersion

      public long getVersion()
      Returns the version (changetracker) of this input source.
      Returns:
      the version (changetracker) of the input source.