Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.parsers

public Class SAXParser

extends AbstractSAXParser
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.JAXPSAXParser
Imports
com.sun.org.apache.xerces.internal.impl.Constants, com.sun.org.apache.xerces.internal.util.SymbolTable, com.sun.org.apache.xerces.internal.utils.XMLSecurityPropertyManager, com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPool, com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration, jdk.xml.internal.JdkConstants, .JdkProperty, .Utils, .XMLSecurityManager, org.xml.sax.SAXException, .SAXNotRecognizedException, .SAXNotSupportedException

References Deprecated

AbstractSAXParser is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

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.
Authors
Arnaud Le Hors, IBM, Andy Clark, IBM

Field Summary

Modifier and TypeField and Description
protected static final String
NOTIFY_BUILTIN_REFS

Feature identifier: notify built-in refereces.

private static final String[]
private static final String[]
protected static final String
protected static final String
SYMBOL_TABLE

Property identifier: symbol table.

protected static final String
XMLGRAMMAR_POOL

Property identifier: XML grammar pool.

Inherited from com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser:
ALLOW_UE_AND_NOTATION_EVENTSDECLARATION_HANDLERDOM_NODEfContentHandlerfDeclaredAttrsfDeclHandlerfDocumentHandlerfDTDHandlerfLexicalHandlerfLexicalHandlerParameterEntitiesfNamespaceContextfNamespacePrefixesfNamespacesfParseInProgressfQNamefResolveDTDURIsfStandalonefUseEntityResolver2fVersionfXMLNSURIsLEXICAL_HANDLERNAMESPACE_PREFIXESNAMESPACESSTRING_INTERNING

Constructor Summary

AccessConstructor and Description
public
SAXParser(XMLParserConfiguration config)

Constructs a SAX parser using the specified parser configuration.

public
SAXParser()

Constructs a SAX parser using the dtd/xml schema parser configuration.

public
SAXParser(SymbolTable symbolTable)

Constructs a SAX parser using the specified symbol table.

public
SAXParser(SymbolTable symbolTable, XMLGrammarPool grammarPool)

Constructs a SAX parser using the specified symbol table and grammar pool.

public
SAXParser(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLSecurityPropertyManager securityPropertyMgr, XMLSecurityManager securityManager)

Method Summary

Modifier and TypeMethod and Description
public void
setProperty(String
The unique identifier (URI) of the property being set.
name
,
Object
The value to which the property is being set.
value
)

Overrides com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.setProperty.

Implements org.xml.sax.XMLReader.setProperty.

Sets the particular property in the underlying implementation of org.xml.sax.XMLReader.

Inherited from com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser:
attributeDeclcharacterscommentdoctypeDeclelementDeclendCDATAendDocumentendDTDendElementendExternalSubsetendGeneralEntityendNamespaceMappingendParameterEntityexternalEntityDeclgetAttributePSVIgetAttributePSVIByNamegetContentHandlergetDeclHandlergetDTDHandlergetElementPSVIgetEntityResolvergetErrorHandlergetFeaturegetLexicalHandlergetPropertyignorableWhitespaceinternalEntityDeclnotationDeclparseparseprocessingInstructionresetsetContentHandlersetDeclHandlersetDocumentHandlersetDTDHandlersetEntityResolversetErrorHandlersetFeaturesetLexicalHandlersetLocalestartCDATAstartDocumentstartElementstartExternalSubsetstartGeneralEntitystartNamespaceMappingstartParameterEntityunparsedEntityDeclxmlDecl

Field Detail

NOTIFY_BUILTIN_REFSback to summary
protected static final String NOTIFY_BUILTIN_REFS

Feature identifier: notify built-in refereces.

RECOGNIZED_FEATURESback to summary
private static final String[] RECOGNIZED_FEATURES

Hides com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.RECOGNIZED_FEATURES.

Recognized features.

RECOGNIZED_PROPERTIESback to summary
private static final String[] RECOGNIZED_PROPERTIES

Hides com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.RECOGNIZED_PROPERTIES.

Recognized properties.

REPORT_WHITESPACEback to summary
protected static final String REPORT_WHITESPACE
SYMBOL_TABLEback to summary
protected static final String SYMBOL_TABLE

Property identifier: symbol table.

XMLGRAMMAR_POOLback to summary
protected static final String XMLGRAMMAR_POOL

Property identifier: XML grammar pool.

Constructor Detail

SAXParserback to summary
public SAXParser(XMLParserConfiguration config)

Constructs a SAX parser using the specified parser configuration.

SAXParserback to summary
public SAXParser()

Constructs a SAX parser using the dtd/xml schema parser configuration.

SAXParserback to summary
public SAXParser(SymbolTable symbolTable)

Constructs a SAX parser using the specified symbol table.

SAXParserback to summary
public SAXParser(SymbolTable symbolTable, XMLGrammarPool grammarPool)

Constructs a SAX parser using the specified symbol table and grammar pool.

SAXParserback to summary
public SAXParser(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLSecurityPropertyManager securityPropertyMgr, XMLSecurityManager securityManager)

Method Detail

setPropertyback to summary
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException

Overrides com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.setProperty.

Implements org.xml.sax.XMLReader.setProperty.

Sets the particular property in the underlying implementation of org.xml.sax.XMLReader.

Parameters
name:String

Doc from com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.setProperty.

The unique identifier (URI) of the property being set.

value:Object

Doc from com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.setProperty.

The value to which the property is being set.

Exceptions
SAXNotRecognizedException:

Doc from com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.setProperty.

If the requested property is not known.

SAXNotSupportedException:

Doc from com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.setProperty.

If the requested property is known, but the requested value is not supported.