Class FastInfosetSource

  • All Implemented Interfaces:
    javax.xml.transform.Source

    public class FastInfosetSource
    extends javax.xml.transform.sax.SAXSource
    A JAXP Source implementation that supports the parsing fast infoset document for use by applications that expect a Source.

    The derivation of FISource from SAXSource is an implementation detail.

    This implementation is designed for interoperation with JAXP and is not not designed with performance in mind. It is recommended that for performant interoperation alternative parser specific solutions be used.

    Applications shall obey the following restrictions:

    • The setXMLReader and setInputSource shall not be called.
    • The XMLReader object obtained by the getXMLReader method shall be used only for parsing the InputSource object returned by the getInputSource method.
    • The InputSource object obtained by the getInputSource method shall be used only for being parsed by the XMLReader object returned by the getXMLReader method.

    • Field Summary

      • Fields inherited from class javax.xml.transform.sax.SAXSource

        FEATURE
    • Constructor Summary

      Constructors 
      Constructor Description
      FastInfosetSource​(java.io.InputStream inputStream)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream getInputStream()  
      org.xml.sax.XMLReader getXMLReader()  
      void setInputStream​(java.io.InputStream inputStream)  
      • Methods inherited from class javax.xml.transform.sax.SAXSource

        getInputSource, getSystemId, isEmpty, setInputSource, setSystemId, setXMLReader, sourceToInputSource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FastInfosetSource

        public FastInfosetSource​(java.io.InputStream inputStream)
    • Method Detail

      • getXMLReader

        public org.xml.sax.XMLReader getXMLReader()
        Overrides:
        getXMLReader in class javax.xml.transform.sax.SAXSource
      • getInputStream

        public java.io.InputStream getInputStream()
      • setInputStream

        public void setInputStream​(java.io.InputStream inputStream)