jas.util.xml.parserwrappers
Class XercesDOMParser

java.lang.Object
  |
  +--jas.util.xml.JASDOMParser
        |
        +--jas.util.xml.parserwrappers.XercesDOMParser

public class XercesDOMParser
extends JASDOMParser

An implementation of DOMParser for the Xerces XML parser

See Also:
org.freehep.xml.util.DOMParser

Inner classes inherited from class jas.util.xml.JASDOMParser
JASDOMParser.XMLException
 
Constructor Summary
XercesDOMParser()
           
 
Method Summary
 org.w3c.dom.Document parse(java.io.Reader in, java.lang.String fileName)
          Create a DOM document by reading an XML file
 org.w3c.dom.Document parse(java.io.Reader in, java.lang.String fileName, org.xml.sax.EntityResolver resolver)
          Create a DOM document by reading an XML file with an explicit entity resolver.
 
Methods inherited from class jas.util.xml.JASDOMParser
instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XercesDOMParser

public XercesDOMParser()
Method Detail

parse

public org.w3c.dom.Document parse(java.io.Reader in,
                                  java.lang.String fileName)
                           throws JASDOMParser.XMLException
Description copied from class: JASDOMParser
Create a DOM document by reading an XML file
Overrides:
parse in class JASDOMParser
Following copied from class: jas.util.xml.JASDOMParser
Parameters:
in - A reader set up to read an XML file
fileName - The name of the file being read (used in error messages)
Returns:
Document The resulting DOM
Throws:
JASDOMParser.XMLException - thrown if there is an error reading the XML

parse

public org.w3c.dom.Document parse(java.io.Reader in,
                                  java.lang.String fileName,
                                  org.xml.sax.EntityResolver resolver)
                           throws JASDOMParser.XMLException
Description copied from class: JASDOMParser
Create a DOM document by reading an XML file with an explicit entity resolver. An entity resolver is typically used to specify where to find the DTD for the XML document.
Overrides:
parse in class JASDOMParser
Following copied from class: jas.util.xml.JASDOMParser
Parameters:
in - A reader set up to read an XML file
fileName - The name of the file being read (used in error messages)
resolver - An entity resolver to use when reading the XML file
Returns:
Document The resulting DOM
Throws:
JASDOMParser.XMLException - thrown if there is an error reading the XML