public static class

SAXParserImpl.JAXPSAXParser

extends SAXParser
java.lang.Object
   ↳ org.apache.xerces.parsers.XMLParser
     ↳ org.apache.xerces.parsers.AbstractXMLDocumentParser
       ↳ org.apache.xerces.parsers.AbstractSAXParser
         ↳ org.apache.xerces.parsers.SAXParser
           ↳ org.apache.xerces.jaxp.SAXParserImpl.JAXPSAXParser

Class Overview

Extension of SAXParser. This class tracks changes to features and properties to allow the parser to be reset to its initial state.

Summary

[Expand]
Inherited Constants
From class org.apache.xerces.parsers.SAXParser
From class org.apache.xerces.parsers.AbstractSAXParser
From class org.apache.xerces.parsers.XMLParser
From interface org.apache.xerces.xni.XMLDTDContentModelHandler
From interface org.apache.xerces.xni.XMLDTDHandler
[Expand]
Inherited Fields
From class org.apache.xerces.parsers.AbstractSAXParser
From class org.apache.xerces.parsers.AbstractXMLDocumentParser
From class org.apache.xerces.parsers.XMLParser
Public Constructors
SAXParserImpl.JAXPSAXParser()
Public Methods
synchronized boolean getFeature(String name)
Query the state of a feature.
synchronized Object getProperty(String name)
Query the value of a property.
void parse(String systemId)
Parses the input source specified by the given system identifier.
void parse(InputSource inputSource)
parse
synchronized void setFeature(String name, boolean value)
Override SAXParser's setFeature method to track the initial state of features.
synchronized void setProperty(String name, Object value)
Override SAXParser's setProperty method to track the initial state of properties.
[Expand]
Inherited Methods
From class org.apache.xerces.parsers.AbstractSAXParser
From class org.apache.xerces.parsers.AbstractXMLDocumentParser
From class org.apache.xerces.parsers.XMLParser
From class java.lang.Object
From interface org.apache.xerces.xni.XMLDTDContentModelHandler
From interface org.apache.xerces.xni.XMLDTDHandler
From interface org.apache.xerces.xni.XMLDocumentHandler
From interface org.apache.xerces.xs.PSVIProvider
From interface org.xml.sax.Parser
From interface org.xml.sax.XMLReader

Public Constructors

public SAXParserImpl.JAXPSAXParser ()

Public Methods

public synchronized boolean getFeature (String name)

Query the state of a feature. Query the current state of any feature in a SAX2 parser. The parser might not recognize the feature.

Parameters
name The unique identifier (URI) of the feature being set.
Returns
  • The current state of the feature.
Throws
SAXNotRecognizedException
SAXNotSupportedException

public synchronized Object getProperty (String name)

Query the value of a property. Return the current value of a property in a SAX2 parser. The parser might not recognize the property.

Parameters
name The unique identifier (URI) of the property being set.
Returns
  • The current value of the property.
Throws
SAXNotRecognizedException
SAXNotSupportedException

public void parse (String systemId)

Parses the input source specified by the given system identifier.

This method is equivalent to the following:

     parse(new InputSource(systemId));
 

Parameters
systemId The system identifier (URI).
Throws
SAXException
IOException

public void parse (InputSource inputSource)

parse

Throws
SAXException
IOException

public synchronized void setFeature (String name, boolean value)

Override SAXParser's setFeature method to track the initial state of features. This keeps us from affecting the performance of the SAXParser when it is created with XMLReaderFactory.

Parameters
name The unique identifier (URI) of the feature.
value The requested state of the feature (true or false).
Throws
SAXNotRecognizedException
SAXNotSupportedException

public synchronized void setProperty (String name, Object value)

Override SAXParser's setProperty method to track the initial state of properties. This keeps us from affecting the performance of the SAXParser when it is created with XMLReaderFactory.

Parameters
name The unique identifier (URI) of the property being set.
value The value to which the property is being set.
Throws
SAXNotRecognizedException
SAXNotSupportedException