|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xrel.xml.Xerces
Wraps the Xerces DOM parser.
Inner classes inherited from class xrel.xml.ParserWrapper |
ParserWrapper.DocumentInfo |
Field Summary | |
protected org.apache.xerces.parsers.DOMParser |
parser
Parser. |
Constructor Summary | |
Xerces()
Default constructor. |
Method Summary | |
void |
error(org.xml.sax.SAXParseException ex)
Error. |
void |
fatalError(org.xml.sax.SAXParseException ex)
Fatal error. |
ParserWrapper.DocumentInfo |
getDocumentInfo()
Returns the document information. |
boolean |
isIgnorableWhitespace(org.w3c.dom.Text text)
Returns true if the specified text node is ignorable whitespace. |
org.w3c.dom.Document |
parse(java.lang.String uri)
Parses the specified URI and returns the document. |
protected void |
printError(java.lang.String type,
org.xml.sax.SAXParseException ex)
Prints the error message. |
void |
setFeature(java.lang.String featureId,
boolean state)
Sets a feature. |
void |
warning(org.xml.sax.SAXParseException ex)
Warning. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.xerces.parsers.DOMParser parser
Constructor Detail |
public Xerces()
Method Detail |
public org.w3c.dom.Document parse(java.lang.String uri) throws java.lang.Exception
parse
in interface ParserWrapper
public void setFeature(java.lang.String featureId, boolean state) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
setFeature
in interface ParserWrapper
xrel.xml.ParserWrapper
featureId
- The unique identifier (URI) of the feature.state
- The requested state of the feature (true or false).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.public ParserWrapper.DocumentInfo getDocumentInfo()
getDocumentInfo
in interface ParserWrapper
public boolean isIgnorableWhitespace(org.w3c.dom.Text text)
isIgnorableWhitespace
in interface ParserWrapper.DocumentInfo
public void warning(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
public void error(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
public void fatalError(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
protected void printError(java.lang.String type, org.xml.sax.SAXParseException ex)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |