|
FreeHEP API Version v1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.freehep.xml.util.DOMParser
Ideally wouldn't need this interface, except that the DOM specification only specifies how to extract information from a DOM, not how to create a DOM from an XML file. The JASDOMParser interface is meant to make up for that deficiency.
Nested Class Summary | |
static class |
DOMParser.XMLException
Deprecated. An exception that gets thrown if there is an error reading an XML file. |
Constructor Summary | |
DOMParser()
Deprecated. |
Method Summary | |
static DOMParser |
instance()
Deprecated. Creates a default instance of a JASDOMParser |
abstract org.w3c.dom.Document |
parse(Reader in,
String fileName)
Deprecated. Create a DOM document by reading an XML file |
abstract org.w3c.dom.Document |
parse(Reader in,
String fileName,
org.xml.sax.EntityResolver resolver)
Deprecated. Create a DOM document by reading an XML file with an explicit entity resolver. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DOMParser()
Method Detail |
public abstract org.w3c.dom.Document parse(Reader in, String fileName) throws DOMParser.XMLException
in
- A reader set up to read an XML filefileName
- The name of the file being read (used in error messages)
DOMParser.XMLException
- thrown if there is an error reading the XMLpublic abstract org.w3c.dom.Document parse(Reader in, String fileName, org.xml.sax.EntityResolver resolver) throws DOMParser.XMLException
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
DOMParser.XMLException
- thrown if there is an error reading the XMLpublic static DOMParser instance()
|
FreeHEP API Version v1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |