org.apache.xerces.jaxp
Class SAXParserImpl.JAXPSAXParser
- SAXParserImpl
- org.xml.sax.Parser, org.apache.xerces.xs.PSVIProvider, org.apache.xerces.xni.XMLDocumentHandler, org.apache.xerces.xni.XMLDTDContentModelHandler, org.apache.xerces.xni.XMLDTDHandler, org.xml.sax.XMLReader
public static class SAXParserImpl.JAXPSAXParser
Extension of SAXParser. This class tracks changes to
features and properties to allow the parser to be reset to
its initial state.
ALLOW_UE_AND_NOTATION_EVENTS , DECLARATION_HANDLER , DOM_NODE , LEXICAL_HANDLER , NAMESPACES , STRING_INTERNING , fContentHandler , fDTDHandler , fDeclHandler , fDeclaredAttrs , fDocumentHandler , fLexicalHandler , fLexicalHandlerParameterEntities , fNamespaceContext , fNamespacePrefixes , fNamespaces , fParseInProgress , fQName , fResolveDTDURIs , fStandalone , fUseEntityResolver2 , fVersion , fXMLNSURIs |
JAXPSAXParser() - Constructs a SAX parser using the dtd/xml schema parser configuration.
|
boolean | getFeature(String name) - Query the state of a feature.
|
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(org.xml.sax.InputSource inputSource) - parse
|
void | setFeature(String name, boolean value) - Override SAXParser's setFeature method to track the initial state
of features.
|
void | setProperty(String name, Object value) - Override SAXParser's setProperty method to track the initial state
of properties.
|
attributeDecl , characters , comment , doctypeDecl , elementDecl , endCDATA , endDTD , endDocument , endElement , endExternalSubset , endGeneralEntity , endNamespaceMapping , endParameterEntity , externalEntityDecl , getAttributePSVI , getAttributePSVIByName , getContentHandler , getDTDHandler , getDeclHandler , getElementPSVI , getEntityResolver , getErrorHandler , getFeature , getLexicalHandler , getProperty , ignorableWhitespace , internalEntityDecl , notationDecl , parse , parse , processingInstruction , reset , setContentHandler , setDTDHandler , setDeclHandler , setDocumentHandler , setEntityResolver , setErrorHandler , setFeature , setLexicalHandler , setLocale , setProperty , startCDATA , startDocument , startElement , startExternalSubset , startGeneralEntity , startNamespaceMapping , startParameterEntity , unparsedEntityDecl , xmlDecl |
any , attributeDecl , characters , comment , doctypeDecl , element , elementDecl , empty , emptyElement , endAttlist , endCDATA , endConditional , endContentModel , endDTD , endDocument , endElement , endExternalSubset , endGeneralEntity , endGroup , endParameterEntity , externalEntityDecl , getDTDContentModelSource , getDTDSource , getDocumentSource , ignorableWhitespace , ignoredCharacters , internalEntityDecl , notationDecl , occurrence , pcdata , processingInstruction , reset , separator , setDTDContentModelSource , setDTDSource , setDocumentSource , startAttlist , startCDATA , startConditional , startContentModel , startDTD , startDocument , startElement , startExternalSubset , startGeneralEntity , startGroup , startParameterEntity , textDecl , unparsedEntityDecl , xmlDecl |
JAXPSAXParser
public JAXPSAXParser()
Constructs a SAX parser using the dtd/xml schema parser configuration.
getFeature
public boolean getFeature(String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
Query the state of a feature.
Query the current state of any feature in a SAX2 parser. The
parser might not recognize the feature.
- getFeature in interface org.xml.sax.XMLReader
- getFeature in interface AbstractSAXParser
- The current state of the feature.
org.xml.sax.SAXNotRecognizedException
- If the
requested feature is not known.org.xml.sax.SAXNotSupportedException
- If the
requested feature is known but not supported.
getProperty
public Object getProperty(String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
Query the value of a property.
Return the current value of a property in a SAX2 parser.
The parser might not recognize the property.
- getProperty in interface org.xml.sax.XMLReader
- getProperty in interface AbstractSAXParser
- The current value of the property.
org.xml.sax.SAXNotRecognizedException
- If the
requested property is not known.org.xml.sax.SAXNotSupportedException
- If the
requested property is known but not supported.
parse
public void parse(String systemId)
throws org.xml.sax.SAXException,
IOException
Parses the input source specified by the given system identifier.
This method is equivalent to the following:
parse(new InputSource(systemId));
- parse in interface org.xml.sax.Parser
- parse in interface org.xml.sax.XMLReader
- parse in interface AbstractSAXParser
systemId
- The system identifier (URI).
org.xml.sax.SAXException
- Throws exception on SAX error.
parse
public void parse(org.xml.sax.InputSource inputSource)
throws org.xml.sax.SAXException,
IOException
parse
- parse in interface org.xml.sax.Parser
- parse in interface org.xml.sax.XMLReader
- parse in interface AbstractSAXParser
org.xml.sax.SAXException
-
setFeature
public void setFeature(String name,
boolean value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
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.
- setFeature in interface org.xml.sax.XMLReader
- setFeature in interface AbstractSAXParser
setProperty
public void setProperty(String name,
Object value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
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.
- setProperty in interface org.xml.sax.XMLReader
- setProperty in interface AbstractSAXParser
Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.