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
- Version:
 
  - $Id: XercesDOMParser.java 11553 2007-06-05 22:06:23Z duns $
 
- See Also:
 org.freehep.xml.util.DOMParser
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
XercesDOMParser
public XercesDOMParser()
parse
public Document parse(Reader in,
                      String fileName)
               throws JASDOMParser.JASXMLException
- Description copied from class: 
JASDOMParser 
- Create a DOM document by reading an XML file
- Specified by:
 parse in class JASDOMParser
 
- Parameters:
 in - A reader set up to read an XML filefileName - The name of the file being read (used in error messages)
- Returns:
 - Document The resulting DOM
 - Throws:
 JASDOMParser.JASXMLException - thrown if there is an error reading the XML
 
 
parse
public Document parse(Reader in,
                      String fileName,
                      EntityResolver resolver)
               throws JASDOMParser.JASXMLException
- 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.
- Specified by:
 parse in class JASDOMParser
 
- Parameters:
 in - A reader set up to read an XML filefileName - 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.JASXMLException - thrown if there is an error reading the XML
 
 
Copyright © 2000-2009 FreeHEP. All Rights Reserved.