cwi.GraphXML
Class XercesParser

java.lang.Object
  extended by cwi.GraphXML.AbstractParser
      extended by cwi.GraphXML.XercesParser
All Implemented Interfaces:
ParserError

public class XercesParser
extends AbstractParser

Implementation of the abstract parser on the top of the IBM XML4J/Apache Xerces package.

This is the only Java file in the package which is explicitly dependent on the IBM/Apache parser.

Author:
Ivan Herman

Nested Class Summary
(package private)  class XercesParser.XercesErrorHandler
          IBM Specific error handling
 
Field Summary
 
Fields inherited from class cwi.GraphXML.AbstractParser
entityResolver
 
Constructor Summary
XercesParser()
           
 
Method Summary
 org.w3c.dom.Document parse(java.io.InputStream xmlStream, boolean validate)
          The 'real' parsing
 
Methods inherited from class cwi.GraphXML.AbstractParser
addParserErrorListener, decompose, decompose, fireParserError, fireParserFatalError, fireParserWarning, getKeywords, getStoppers, interpret, interpret, parse, parse, removeParserErrorListener, setGraphSemantics
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XercesParser

public XercesParser()
Method Detail

parse

public org.w3c.dom.Document parse(java.io.InputStream xmlStream,
                                  boolean validate)
The 'real' parsing

Specified by:
parse in class AbstractParser
Parameters:
xmlStream - the xml Stream to be parsed
validate - decide whether the parser is validating or not
Returns:
the document element for the full xml document