java.lang.Object | +--gnu.xml.util.DomParserAll Implemented Interfaces:
Constructs an unitialized SAX2 parser. |
Constructs an SAX2 parser initialized to traverse the specified DOM tree. |
SAX2: Returns the object used to report the logical content of an XML document. | |
SAX2: Returns the object used to process declarations related to notations and unparsed entities. | |
SAX2: Returns the object used when resolving external entities during parsing (both general and parameter entities). | |
SAX2: Returns the object used to receive callbacks for XML errors of all levels (fatal, nonfatal, warning). | |
boolean | getFeature(java.lang.String name) SAX2: Tells whether this parser supports the specified feature. |
java.lang.Object | getProperty(java.lang.String name) SAX2: Returns the specified property. |
void | parse(java.lang.String uri) SAX1: Parses the previously provided DOM document (the input parameter is ignored). |
void | parse(InputSource input) SAX1: Parses the previously provided DOM document (the input parameter is ignored). |
void | setContentHandler(ContentHandler handler) SAX2: Assigns the object used to report the logical content of an XML document. |
void | setDTDHandler(DTDHandler handler) SAX1: Provides an object which may be used to intercept declarations related to notations and unparsed entities. |
void | setEntityResolver(EntityResolver resolver) SAX1: Provides an object which may be used when resolving external entities during parsing (both general and parameter entities). |
void | setErrorHandler(ErrorHandler handler) SAX1: Provides an object which receives callbacks for XML errors of all levels (fatal, nonfatal, warning). |
void | setFeature(java.lang.String name, boolean state) SAX2: Sets the state of features supported in this parser. |
void | setLocale(java.util.Locale locale) SAX1: Identifies the locale which the parser should use for the diagnostics it provides. |
void | setProperty(java.lang.String name, java.lang.Object state) SAX2: Assigns the specified property. |
public DomParser()
public DomParser(Node node)
public ContentHandler getContentHandler()
public DTDHandler getDTDHandler()
public EntityResolver getEntityResolver()
public ErrorHandler getErrorHandler()
public boolean getFeature(java.lang.String name)
public Object getProperty(java.lang.String name)
public void parse(java.lang.String uri)
SAXException
- as defined in the specification for
org.xml.sax.Parser.parse()public void parse(InputSource input)
SAXException
- as defined in the specification for
org.xml.sax.Parser.parse()public void setContentHandler(ContentHandler handler)
public void setDTDHandler(DTDHandler handler)
public void setEntityResolver(EntityResolver resolver)
public void setErrorHandler(ErrorHandler handler)
public void setFeature(java.lang.String name, boolean state)
public void setLocale(java.util.Locale locale)
SAXException
- as defined in the specification for
org.xml.sax.Parser.setLocale()public void setProperty(java.lang.String name, java.lang.Object state)
xmlns
attributes hidden, and names aren't prefixed)