org.apache.xerces.jaxp
Class SAXParserImpl.JAXPSAXParser
- SAXParserImpl
- Parser, org.apache.xerces.xs.PSVIProvider, XMLReader, org.apache.xerces.xni.XMLDocumentHandler, org.apache.xerces.xni.XMLDTDContentModelHandler, org.apache.xerces.xni.XMLDTDHandler
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 , NAMESPACE_PREFIXES , 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(InputSource inputSource) - parse
|
void | parse(String systemId) - Parses the input source specified by the given system identifier.
|
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 SAXNotRecognizedException,
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 AbstractSAXParser
- The current state of the feature.
getProperty
public Object getProperty(String name)
throws SAXNotRecognizedException,
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 AbstractSAXParser
- The current value of the property.
parse
public void parse(InputSource inputSource)
throws SAXException,
IOException
parse
- parse in interface AbstractSAXParser
parse
public void parse(String systemId)
throws 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 AbstractSAXParser
systemId
- The system identifier (URI).
setFeature
public void setFeature(String name,
boolean value)
throws SAXNotRecognizedException,
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 AbstractSAXParser
setProperty
public void setProperty(String name,
Object value)
throws SAXNotRecognizedException,
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 AbstractSAXParser
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.