- Java org apache xerces parsers saxparser
- Methods inherited from class javax.xml.parsers.SAXParser
- Methods inherited from class java.lang.Object
- Method Detail
- getParser
- getXMLReader
- isNamespaceAware
- isValidating
- isXIncludeAware
- setProperty
- getProperty
- parse
- parse
- getSchema
- reset
- getElementPSVI
- getAttributePSVI
- getAttributePSVIByName
- Java org apache xerces parsers saxparser
- Constructor Summary
- Method Summary
- Methods inherited from class java.lang.Object
- Constructor Detail
- SAXParser
- Method Detail
- reset
- parse
- parse
- parse
- parse
- parse
- parse
- parse
- parse
- parse
- parse
- getParser
- getXMLReader
- isNamespaceAware
- isValidating
- setProperty
- getProperty
- getSchema
- isXIncludeAware
- Java org apache xerces parsers saxparser
- Class SAXParser
- Nested Class Summary
- Nested classes/interfaces inherited from class org.apache.xerces.parsers.AbstractSAXParser
- Field Summary
- Fields inherited from class org.apache.xerces.parsers.AbstractSAXParser
- Fields inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser
- Fields inherited from class org.apache.xerces.parsers.XMLParser
- Fields inherited from interface org.apache.xerces.xni.XMLDTDHandler
- Fields inherited from interface org.apache.xerces.xni.XMLDTDContentModelHandler
- Constructor Summary
- Method Summary
- Methods inherited from class org.apache.xerces.parsers.AbstractSAXParser
- Methods inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser
- Methods inherited from class org.apache.xerces.parsers.XMLParser
- Methods inherited from class java.lang.Object
- Field Detail
- NOTIFY_BUILTIN_REFS
- SYMBOL_TABLE
- XMLGRAMMAR_POOL
- Constructor Detail
- SAXParser
- SAXParser
- SAXParser
- SAXParser
Java org apache xerces parsers saxparser
Provides AttributePSVI given the index of an attribute information item in the current element’s attribute list.
Provides AttributePSVI given the namespace name and the local name of an attribute information item in the current element’s attribute list.
returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.
Methods inherited from class javax.xml.parsers.SAXParser
Methods inherited from class java.lang.Object
Method Detail
getParser
public org.xml.sax.Parser getParser() throws org.xml.sax.SAXException
getXMLReader
public org.xml.sax.XMLReader getXMLReader()
isNamespaceAware
public boolean isNamespaceAware()
isValidating
public boolean isValidating()
isXIncludeAware
public boolean isXIncludeAware()
setProperty
public void setProperty(java.lang.String name, java.lang.Object value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
getProperty
public java.lang.Object getProperty(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.
parse
public void parse(org.xml.sax.InputSource is, org.xml.sax.helpers.DefaultHandler dh) throws org.xml.sax.SAXException, java.io.IOException
parse
public void parse(org.xml.sax.InputSource is, org.xml.sax.HandlerBase hb) throws org.xml.sax.SAXException, java.io.IOException
Parse the content given InputSource as XML using the specified HandlerBase . Use of the DefaultHandler version of this method is recommended as the HandlerBase class has been deprecated in SAX 2.0
getSchema
public javax.xml.validation.Schema getSchema()
Get a reference to the the Schema being used by the XML processor. If no schema is being used, null is returned.
reset
Reset this SAXParser to its original configuration. SAXParser is reset to the same state as when it was created with SAXParserFactory.newSAXParser() . reset() is designed to allow the reuse of existing SAXParser s thus saving resources associated with the creation of new SAXParser s. The reset SAXParser is not guaranteed to have the same Schema Object , e.g. Object.equals(Object obj) . It is guaranteed to have a functionally equal Schema .
getElementPSVI
public org.apache.xerces.xs.ElementPSVI getElementPSVI()
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 startElement or endElement call. If the method is called outside of the specified scope, the return value is undefined.
getAttributePSVI
public org.apache.xerces.xs.AttributePSVI getAttributePSVI(int index)
Provides AttributePSVI given the index of an attribute information item in the current element’s attribute list. The method must be called by an application while in the scope of the methods which report the start and end of an element at a point where the attribute list is available. For example, for SAX the method must be called while in the scope of the document handler’s startElement call. If the method is called outside of the specified scope, the return value is undefined.
getAttributePSVIByName
public org.apache.xerces.xs.AttributePSVI getAttributePSVIByName(java.lang.String uri, java.lang.String localname)
Provides AttributePSVI given the namespace name and the local name of an attribute information item in the current element’s attribute list. The method must be called by an application while in the scope of the methods which report the start and end of an element at a point where the attribute list is available. For example, for SAX the method must be called while in the scope of the document handler’s startElement call. If the method is called outside of the specified scope, the return value is undefined.
Copyright � 1999-2022 The Apache Software Foundation. All Rights Reserved.
Java org apache xerces parsers saxparser
Defines the API that wraps an XMLReader implementation class. In JAXP 1.0, this class wrapped the Parser interface, however this interface was replaced by the XMLReader . For ease of transition, this class continues to support the same name and interface as well as supporting new methods. An instance of this class can be obtained from the SAXParserFactory.newSAXParser() method. Once an instance of this class is obtained, XML can be parsed from a variety of input sources. These input sources are InputStreams, Files, URLs, and SAX InputSources. This static method creates a new factory instance based on a system property setting or uses the platform default if no property has been defined. The system property that controls which Factory implementation to create is named «javax.xml.parsers.SAXParserFactory» . This property names a class that is a concrete subclass of this abstract class. If no property is defined, a platform default will be used. As the content is parsed by the underlying parser, methods of the given HandlerBase or the DefaultHandler are called. Implementors of this class which wrap an underlaying implementation can consider using the ParserAdapter class to initially adapt their SAX1 implementation to work under this revised class.
Constructor Summary
Method Summary
Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specified DefaultHandler .
Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specified HandlerBase .
Methods inherited from class java.lang.Object
Constructor Detail
SAXParser
Method Detail
reset
Reset this SAXParser to its original configuration. SAXParser is reset to the same state as when it was created with SAXParserFactory.newSAXParser() . reset() is designed to allow the reuse of existing SAXParser s thus saving resources associated with the creation of new SAXParser s. The reset SAXParser is not guaranteed to have the same Schema Object , e.g. Object.equals(Object obj) . It is guaranteed to have a functionally equal Schema .
parse
public void parse(java.io.InputStream is, HandlerBase hb) throws SAXException, java.io.IOException
Parse the content of the given InputStream instance as XML using the specified HandlerBase . Use of the DefaultHandler version of this method is recommended as the HandlerBase class has been deprecated in SAX 2.0.
parse
public void parse(java.io.InputStream is, HandlerBase hb, java.lang.String systemId) throws SAXException, java.io.IOException
Parse the content of the given InputStream instance as XML using the specified HandlerBase . Use of the DefaultHandler version of this method is recommended as the HandlerBase class has been deprecated in SAX 2.0.
parse
public void parse(java.io.InputStream is, DefaultHandler dh) throws SAXException, java.io.IOException
parse
public void parse(java.io.InputStream is, DefaultHandler dh, java.lang.String systemId) throws SAXException, java.io.IOException
parse
public void parse(java.lang.String uri, HandlerBase hb) throws SAXException, java.io.IOException
Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specified HandlerBase . Use of the DefaultHandler version of this method is recommended as the HandlerBase class has been deprecated in SAX 2.0
parse
public void parse(java.lang.String uri, DefaultHandler dh) throws SAXException, java.io.IOException
Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specified DefaultHandler .
parse
public void parse(java.io.File f, HandlerBase hb) throws SAXException, java.io.IOException
Parse the content of the file specified as XML using the specified HandlerBase . Use of the DefaultHandler version of this method is recommended as the HandlerBase class has been deprecated in SAX 2.0
parse
public void parse(java.io.File f, DefaultHandler dh) throws SAXException, java.io.IOException
parse
public void parse(InputSource is, HandlerBase hb) throws SAXException, java.io.IOException
Parse the content given InputSource as XML using the specified HandlerBase . Use of the DefaultHandler version of this method is recommended as the HandlerBase class has been deprecated in SAX 2.0
parse
public void parse(InputSource is, DefaultHandler dh) throws SAXException, java.io.IOException
getParser
public abstract Parser getParser() throws SAXException
getXMLReader
public abstract XMLReader getXMLReader() throws SAXException
isNamespaceAware
public abstract boolean isNamespaceAware()
isValidating
public abstract boolean isValidating()
setProperty
Sets the particular property in the underlying implementation of XMLReader . A list of the core features and properties can be found at http://sax.sourceforge.net/?selected=get-set.
getProperty
getSchema
Get a reference to the the Schema being used by the XML processor. If no schema is being used, null is returned.
isXIncludeAware
public boolean isXIncludeAware()
Copyright � 1999-2022 The Apache Software Foundation. All Rights Reserved.
Java org apache xerces parsers saxparser
Class SAXParser
- java.lang.Object
-
- org.apache.xerces.parsers.XMLParser
-
- org.apache.xerces.parsers.AbstractXMLDocumentParser
-
- org.apache.xerces.parsers.AbstractSAXParser
-
- org.apache.xerces.parsers.SAXParser
- All Implemented Interfaces: org.apache.xerces.xni.XMLDocumentHandler, org.apache.xerces.xni.XMLDTDContentModelHandler, org.apache.xerces.xni.XMLDTDHandler, org.apache.xerces.xs.PSVIProvider, org.xml.sax.Parser, org.xml.sax.XMLReader Direct Known Subclasses: SAXParserImpl.JAXPSAXParser
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.
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.xerces.parsers.AbstractSAXParser
Field Summary
Fields inherited from class org.apache.xerces.parsers.AbstractSAXParser
Fields inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser
Fields inherited from class org.apache.xerces.parsers.XMLParser
Fields inherited from interface org.apache.xerces.xni.XMLDTDHandler
Fields inherited from interface org.apache.xerces.xni.XMLDTDContentModelHandler
Constructor Summary
Method Summary
Methods inherited from class org.apache.xerces.parsers.AbstractSAXParser
Methods inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser
Methods inherited from class org.apache.xerces.parsers.XMLParser
Methods inherited from class java.lang.Object
Field Detail
NOTIFY_BUILTIN_REFS
protected static final java.lang.String NOTIFY_BUILTIN_REFS
SYMBOL_TABLE
protected static final java.lang.String SYMBOL_TABLE
XMLGRAMMAR_POOL
protected static final java.lang.String XMLGRAMMAR_POOL
Constructor Detail
SAXParser
public SAXParser(org.apache.xerces.xni.parser.XMLParserConfiguration config)
SAXParser
SAXParser
SAXParser
public SAXParser(SymbolTable symbolTable, org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
Copyright � 1999-2022 The Apache Software Foundation. All Rights Reserved.