javax.xml.parsers.SAXParser.
| Modifier and Type | Class and Description |
|---|---|
| public static class | SAXParserImpl.JAXPSAXParser
Deprecated
as a consequence of Extension of SAXParser.
SAXParser being deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
| private final EntityResolver | fInitEntityResolver
Initial EntityResolver |
| private final ErrorHandler | fInitErrorHandler
Initial ErrorHandler |
| private final ValidationManager | |
| private final XMLComponent | |
| private final XMLComponentManager | |
| private final UnparsedEntityHandler | |
| private final Schema | |
| private static final String | NAMESPACE_PREFIXES_FEATURE
Feature identifier: namespace prefixes. |
| private static final String | NAMESPACES_FEATURE
Feature identifier: namespaces. |
| private String | |
| private static final String | SECURITY_MANAGER
Property identifier: security manager. |
| private static final String | VALIDATION_FEATURE
Feature identifier: validation. |
| private static final String | XINCLUDE_FEATURE
Feature identifier: XInclude processing |
| private final SAXParserImpl. | xmlReader
Deprecated
as a consequence of
SAXParserImpl.JAXPSAXParser being deprecated.
|
| private static final String | XMLSCHEMA_VALIDATION_FEATURE
Feature identifier: XML Schema validation |
| Access | Constructor and Description |
|---|---|
| pack-priv | SAXParserImpl(SAXParserFactoryImpl spf, Hashtable<K, V>
Hashtable of SAX features, may be null features)Create a SAX parser with the associated features |
| pack-priv | SAXParserImpl(SAXParserFactoryImpl spf, Hashtable<K, V>
Hashtable of SAX features, may be null features, boolean secureProcessing)Create a SAX parser with the associated features |
| Modifier and Type | Method and Description |
|---|---|
| public AttributePSVI | getAttributePSVI(int
The attribute index. index)Implements org. AttributePSVI given the index of an attribute
information item in the current element's attribute list.
|
| public AttributePSVI | getAttributePSVIByName(String
The namespace name of an attribute. uri, String The local name of an attribute. localname)Implements org. AttributePSVI given the namespace name and the
local name of an attribute information item in the current element's
attribute list.
|
| public ElementPSVI | getElementPSVI()
Implements org. |
| public Parser | getParser()
Implements abstract javax.
Deprecated
as a consequence of
Returns the SAX parser that is encapsulated by the
implementation of this class.
Parser being deprecated.
|
| public Object | getProperty(String
The name of the property to be retrieved. name)Implements abstract javax. |
| public Schema | getSchema()
Overrides javax. Get a reference to the |
| public XMLReader | getXMLReader()
Implements abstract javax. |
| public boolean | isNamespaceAware()
Implements abstract javax. |
| public boolean | isValidating()
Implements abstract javax. |
| public boolean | Returns: the state of XInclude processing modeOverrides javax. |
| public void | parse(InputSource
The InputSource containing the content to be parsed. is, DefaultHandler The SAX DefaultHandler to use. dh)Overrides javax. org.xml.sax.InputSource
as XML using the specified
org.xml.sax.helpers.DefaultHandler.
|
| public void | parse(InputSource
The InputSource containing the content to be parsed. is, HandlerBase The SAX HandlerBase to use. hb)Overrides javax.
Deprecated
as a consequence of
Parse the content given HandlerBase being deprecated.
org.xml.sax.InputSource
as XML using the specified
org.xml.sax.HandlerBase.
|
| public void | reset()
Overrides javax. Reset this |
| private void | setFeatures(Hashtable<K, V> features)
Set any features of our XMLReader based on any features set on the SAXParserFactory. |
| public void | setProperty(String
The name of the property to be set. name, Object The value of the property to be set. value)Implements abstract javax. |
| fInitEntityResolver | back to summary |
|---|---|
| private final EntityResolver fInitEntityResolver Initial EntityResolver | |
| fInitErrorHandler | back to summary |
|---|---|
| private final ErrorHandler fInitErrorHandler Initial ErrorHandler | |
| fSchemaValidationManager | back to summary |
|---|---|
| private final ValidationManager fSchemaValidationManager | |
| fSchemaValidator | back to summary |
|---|---|
| private final XMLComponent fSchemaValidator | |
| fSchemaValidatorComponentManager | back to summary |
|---|---|
| private final XMLComponentManager fSchemaValidatorComponentManager | |
| fUnparsedEntityHandler | back to summary |
|---|---|
| private final UnparsedEntityHandler fUnparsedEntityHandler | |
| grammar | back to summary |
|---|---|
| private final Schema grammar | |
| NAMESPACE_PREFIXES_FEATURE | back to summary |
|---|---|
| private static final String NAMESPACE_PREFIXES_FEATURE Feature identifier: namespace prefixes. | |
| NAMESPACES_FEATURE | back to summary |
|---|---|
| private static final String NAMESPACES_FEATURE Feature identifier: namespaces. | |
| schemaLanguage | back to summary |
|---|---|
| private String schemaLanguage | |
| SECURITY_MANAGER | back to summary |
|---|---|
| private static final String SECURITY_MANAGER Property identifier: security manager. | |
| VALIDATION_FEATURE | back to summary |
|---|---|
| private static final String VALIDATION_FEATURE Feature identifier: validation. | |
| XINCLUDE_FEATURE | back to summary |
|---|---|
| private static final String XINCLUDE_FEATURE Feature identifier: XInclude processing | |
| xmlReader | back to summary |
|---|---|
| private final SAXParserImpl. Deprecated as a consequence of | |
| XMLSCHEMA_VALIDATION_FEATURE | back to summary |
|---|---|
| private static final String XMLSCHEMA_VALIDATION_FEATURE Feature identifier: XML Schema validation | |
| SAXParserImpl | back to summary |
|---|---|
| pack-priv SAXParserImpl(SAXParserFactoryImpl spf, Hashtable<K, V> features) throws SAXException Create a SAX parser with the associated features
| |
| SAXParserImpl | back to summary |
|---|---|
| pack-priv SAXParserImpl(SAXParserFactoryImpl spf, Hashtable<K, V> features, boolean secureProcessing) throws SAXException Create a SAX parser with the associated features
| |
| getAttributePSVI | back to summary |
|---|---|
| public AttributePSVI getAttributePSVI(int index) Implements org. Doc from org. Provides
| |
| getAttributePSVIByName | back to summary |
|---|---|
| public AttributePSVI getAttributePSVIByName(String uri, String localname) Implements org. Doc from org. Provides
| |
| getElementPSVI | back to summary |
|---|---|
| public ElementPSVI getElementPSVI() Implements org. Doc from org. Provides the post schema validation item for the current element
information item. The method must be called by an application while
in the scope of the methods which report the start and end of an
element. For example, for SAX the method must be called within the
scope of the document handler's
| |
| getParser | back to summary |
|---|---|
| public Parser getParser() throws SAXException Implements abstract javax. Doc from javax. Deprecated as a consequence of Returns the SAX parser that is encapsulated by the implementation of this class.
| |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException Implements abstract javax. returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.
| |
| getSchema | back to summary |
|---|---|
| public Schema getSchema() Overrides javax. Doc from javax. Get a reference to the If no schema is being used, | |
| getXMLReader | back to summary |
|---|---|
| public XMLReader getXMLReader() Implements abstract javax. Returns the XMLReader that is encapsulated by the implementation of this class.
| |
| isNamespaceAware | back to summary |
|---|---|
| public boolean isNamespaceAware() Implements abstract javax. Doc from javax. Indicates whether or not this parser is configured to understand namespaces.
| |
| isValidating | back to summary |
|---|---|
| public boolean isValidating() Implements abstract javax. Doc from javax. Indicates whether or not this parser is configured to validate XML documents.
| |
| isXIncludeAware | back to summary |
|---|---|
| public boolean isXIncludeAware() Overrides javax. Gets the XInclude processing mode for this parser
| |
| parse | back to summary |
|---|---|
| public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException Overrides javax. Doc from javax. Parse the content given
| |
| parse | back to summary |
|---|---|
| public void parse(InputSource is, HandlerBase hb) throws SAXException, IOException Overrides javax. Doc from javax. Deprecated as a consequence of Parse the content given
| |
| reset | back to summary |
|---|---|
| public void reset() Overrides javax. Doc from javax. Reset this
The reset | |
| setFeatures | back to summary |
|---|---|
| private void setFeatures(Hashtable<K, V> features) throws SAXNotSupportedException, SAXNotRecognizedException Set any features of our XMLReader based on any features set on the SAXParserFactory. XXX Does not handle possible conflicts between SAX feature names and JAXP specific feature names, eg. SAXParserFactory.isValidating() | |
| setProperty | back to summary |
|---|---|
| public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException Implements abstract javax. Sets the particular property in the underlying implementation of org.xml.sax.XMLReader.
| |
Deprecated
as a consequence of SAXParser being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| private final HashMap | |
| private final HashMap | |
| private final SAXParserImpl |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized boolean | getFeature(String
The unique identifier (URI) of the feature
being set. name)Overrides org. Implements org. |
| pack-priv boolean | |
| public synchronized Object | getProperty(String
The unique identifier (URI) of the property
being set. name)Overrides org. Implements org. |
| pack-priv Object | |
| pack-priv XMLParserConfiguration | |
| public void | parse(InputSource inputSource)
Overrides org. Implements org. |
| public void | parse(String
The system identifier (URI). systemId)Overrides org. Implements org. |
| private void | |
| pack-priv synchronized void | |
| public synchronized void | setFeature(String
The unique identifier (URI) of the feature. name, boolean The requested state of the feature (true or false). value)Overrides org. Implements org. |
| pack-priv void | |
| public synchronized 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 org. Implements org. |
| pack-priv void | |
| private void | |
| private void |
| fInitFeatures | back to summary |
|---|---|
| private final HashMap<K, V> fInitFeatures | |
| fInitProperties | back to summary |
|---|---|
| private final HashMap<K, V> fInitProperties | |
| fSAXParser | back to summary |
|---|---|
| private final SAXParserImpl fSAXParser | |
| JAXPSAXParser | back to summary |
|---|---|
| public JAXPSAXParser() | |
| JAXPSAXParser | back to summary |
|---|---|
| pack-priv JAXPSAXParser(SAXParserImpl saxParser) | |
| getFeature | back to summary |
|---|---|
| public synchronized boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException Overrides org. Implements org. Doc from org. Query the state of a feature. Query the current state of any feature in a SAX2 parser. The parser might not recognize the feature.
| |
| getFeature0 | back to summary |
|---|---|
| pack-priv boolean getFeature0(String name) throws SAXNotRecognizedException, SAXNotSupportedException | |
| getProperty | back to summary |
|---|---|
| public synchronized Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException Overrides org. Implements org. Doc from org. Query the value of a property. Return the current value of a property in a SAX2 parser. The parser might not recognize the property.
| |
| getProperty0 | back to summary |
|---|---|
| pack-priv Object getProperty0(String name) throws SAXNotRecognizedException, SAXNotSupportedException | |
| getXMLParserConfiguration | back to summary |
|---|---|
| pack-priv XMLParserConfiguration getXMLParserConfiguration() | |
| parse | back to summary |
|---|---|
| public void parse(InputSource inputSource) throws SAXException, IOException Overrides org. Implements org. Doc from org. parse
| |
| parse | back to summary |
|---|---|
| public void parse(String systemId) throws SAXException, IOException Overrides org. Implements org. Doc from org. Parses the input source specified by the given system identifier. This method is equivalent to the following:
parse(new InputSource(systemId));
| |
| resetSchemaValidator | back to summary |
|---|---|
| private void resetSchemaValidator() throws SAXException | |
| restoreInitState | back to summary |
|---|---|
| pack-priv synchronized void restoreInitState() throws SAXNotRecognizedException, SAXNotSupportedException | |
| setFeature | back to summary |
|---|---|
| public synchronized void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException Overrides org. Implements org. 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.
| |
| setFeature0 | back to summary |
|---|---|
| pack-priv void setFeature0(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException | |
| setProperty | back to summary |
|---|---|
| public synchronized void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException Overrides org. Implements org. 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.
| |
| setProperty0 | back to summary |
|---|---|
| pack-priv void setProperty0(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException | |
| setSchemaValidatorFeature | back to summary |
|---|---|
| private void setSchemaValidatorFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException | |
| setSchemaValidatorProperty | back to summary |
|---|---|
| private void setSchemaValidatorProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException | |