xrel.xml
Interface ParserWrapper
- All Known Implementing Classes:
- Xerces
- public interface ParserWrapper
Encapsulates a DOM parser.
- Version:
- $Id: ParserWrapper.java,v 1.3 2002/01/29 01:15:05 lehors Exp $
Inner Class Summary |
static interface |
ParserWrapper.DocumentInfo
This interface is here to query information about the document
implementation returned by the ParserWrapper#parse
method. |
Method Summary |
ParserWrapper.DocumentInfo |
getDocumentInfo()
Returns the document information. |
org.w3c.dom.Document |
parse(java.lang.String uri)
Parses the specified URI and returns the document. |
void |
setFeature(java.lang.String featureId,
boolean state)
Set the state of a feature.
|
parse
public org.w3c.dom.Document parse(java.lang.String uri)
throws java.lang.Exception
- Parses the specified URI and returns the document.
setFeature
public void setFeature(java.lang.String featureId,
boolean state)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
- Set the state of a feature.
Set the state of any feature in a SAX2 parser. The parser
might not recognize the feature, and if it does recognize
it, it might not be able to fulfill the request.
- Parameters:
featureId
- The unique identifier (URI) of the feature.state
- The requested state of the feature (true or false).- Throws:
org.xml.sax.SAXNotRecognizedException
- If the
requested feature is not known.org.xml.sax.SAXNotSupportedException
- If the
requested feature is known, but the requested
state is not supported.
getDocumentInfo
public ParserWrapper.DocumentInfo getDocumentInfo()
- Returns the document information.