Class CachingParser

    • Constructor Summary

      Constructors 
      Constructor Description
      CachingParser()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.w3c.dom.Document create()
      Create a new empty DOM Document object.
      void init​(Engine e, Parameters p)
      Initialize this component instance.
      org.w3c.dom.Document parse​(org.xml.sax.InputSource in)
      Parse the specified InputSource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.stylebook.Parser

        parse
    • Constructor Detail

      • CachingParser

        public CachingParser()
    • Method Detail

      • create

        public org.w3c.dom.Document create()
        Create a new empty DOM Document object.
        Specified by:
        create in interface Parser
        Returns:
        A non-null DOM Document object.
        Throws:
        DocumentException - If the new Document cannot be created.
      • parse

        public org.w3c.dom.Document parse​(org.xml.sax.InputSource in)
                                   throws java.io.IOException,
                                          CreationException
        Parse the specified InputSource.
        Specified by:
        parse in interface Parser
        Parameters:
        in - The InputSource to parse.
        Returns:
        A non-null DOM Document object.
        Throws:
        java.io.IOException - If an I/O error occourred accessing the specified System-ID.
        CreationException - If an error occourred parsing the document.