|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjas.util.xml.JASDOMParser
public abstract class JASDOMParser
Ideally wouldnt 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 |
JASDOMParser.JASXMLException
An exception that gets thrown if there is an error reading an XML file. |
| Constructor Summary | |
|---|---|
JASDOMParser()
|
|
| Method Summary | |
|---|---|
static JASDOMParser |
instance()
Creates a default instance of a JASDOMParser |
abstract Document |
parse(Reader in,
String fileName)
Create a DOM document by reading an XML file |
abstract Document |
parse(Reader in,
String fileName,
EntityResolver resolver)
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 JASDOMParser()
| Method Detail |
|---|
public abstract Document parse(Reader in,
String fileName)
throws JASDOMParser.JASXMLException
in - A reader set up to read an XML filefileName - The name of the file being read (used in error messages)
JASDOMParser.JASXMLException - thrown if there is an error reading the XML
public abstract Document parse(Reader in,
String fileName,
EntityResolver resolver)
throws JASDOMParser.JASXMLException
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
JASDOMParser.JASXMLException - thrown if there is an error reading the XMLpublic static JASDOMParser instance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||