org.apache.xerces.parsers
Class SAXParser

java.lang.Object
  extended by org.apache.xerces.parsers.XMLParser
      extended by org.apache.xerces.parsers.AbstractXMLDocumentParser
          extended by org.apache.xerces.parsers.AbstractSAXParser
              extended by org.apache.xerces.parsers.SAXParser
All Implemented Interfaces:
XMLDocumentHandler, XMLDTDContentModelHandler, XMLDTDHandler, PSVIProvider, Parser, XMLReader
Direct Known Subclasses:
SAXParserImpl.JAXPSAXParser

public class SAXParser
extends AbstractSAXParser

This is the main Xerces SAX parser class. It uses the abstract SAX parser with a document scanner, a dtd scanner, and a validator, as well as a grammar pool.

Version:
$Id: SAXParser.java 447239 2006-09-18 05:08:26Z mrglavas $
Author:
Arnaud Le Hors, IBM, Andy Clark, IBM

Field Summary
 
Fields inherited from interface org.apache.xerces.xni.XMLDTDHandler
CONDITIONAL_IGNORE, CONDITIONAL_INCLUDE
 
Fields inherited from interface org.apache.xerces.xni.XMLDTDContentModelHandler
OCCURS_ONE_OR_MORE, OCCURS_ZERO_OR_MORE, OCCURS_ZERO_OR_ONE, SEPARATOR_CHOICE, SEPARATOR_SEQUENCE
 
Constructor Summary
SAXParser()
          Constructs a SAX parser using the dtd/xml schema parser configuration.
SAXParser(SymbolTable symbolTable)
          Constructs a SAX parser using the specified symbol table.
SAXParser(SymbolTable symbolTable, XMLGrammarPool grammarPool)
          Constructs a SAX parser using the specified symbol table and grammar pool.
SAXParser(XMLParserConfiguration config)
          Constructs a SAX parser using the specified parser configuration.
 
Method Summary
 
Methods inherited from class org.apache.xerces.parsers.AbstractSAXParser
attributeDecl, characters, comment, doctypeDecl, elementDecl, endCDATA, endDocument, endDTD, endElement, endExternalSubset, endGeneralEntity, endParameterEntity, externalEntityDecl, getAttributePSVI, getAttributePSVIByName, getContentHandler, getDTDHandler, getElementPSVI, getEntityResolver, getErrorHandler, getFeature, getProperty, ignorableWhitespace, internalEntityDecl, notationDecl, parse, parse, processingInstruction, reset, setContentHandler, setDocumentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setLocale, setProperty, startCDATA, startDocument, startElement, startExternalSubset, startGeneralEntity, startParameterEntity, unparsedEntityDecl, xmlDecl
 
Methods inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser
any, element, empty, emptyElement, endAttlist, endConditional, endContentModel, endGroup, getDocumentSource, getDTDContentModelSource, getDTDSource, ignoredCharacters, occurrence, pcdata, separator, setDocumentSource, setDTDContentModelSource, setDTDSource, startAttlist, startConditional, startContentModel, startDTD, startGroup, textDecl
 
Methods inherited from class org.apache.xerces.parsers.XMLParser
parse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXParser

public SAXParser(XMLParserConfiguration config)
Constructs a SAX parser using the specified parser configuration.


SAXParser

public SAXParser()
Constructs a SAX parser using the dtd/xml schema parser configuration.


SAXParser

public SAXParser(SymbolTable symbolTable)
Constructs a SAX parser using the specified symbol table.


SAXParser

public SAXParser(SymbolTable symbolTable,
                 XMLGrammarPool grammarPool)
Constructs a SAX parser using the specified symbol table and grammar pool.