| java.lang.Object org.apache.xerces.framework.XMLParser org.apache.xerces.parsers.SAXParser
Method Summary | |
public void | attlistDecl(QName elementDecl, QName attributeDecl, int attType, boolean attList, String enumString, int attDefaultType, int attDefaultValue) Report an attribute type declaration.
Only the effective (first) declaration for an attribute will
be reported. | public void | characters(int dataIndex) Not called. | public void | characters(char ch, int start, int length) Characters. | public void | comment(int dataIndex) Comment. | public void | elementDecl(QName elementDecl, int contentSpecType, int contentSpecIndex, XMLContentSpec.Provider contentSpecProvider) Report an element type declaration.
The content model will consist of the string "EMPTY", the
string "ANY", or a parenthesised group, optionally followed
by an occurrence indicator. | public void | endCDATA() End CDATA section. | public void | endDTD() This function will be called at the end of the DTD. | public void | endDocument() End document. | public void | endElement(QName element) End element. | public void | endEntityReference(int entityName, int entityType, int entityContext) End entity reference. | public void | endNamespaceDeclScope(int prefix) Report the end of the scope of a namespace declaration. | public void | externalEntityDecl(int entityName, int publicId, int systemId) Report a parsed external general entity declaration. | public void | externalPEDecl(int entityName, int publicId, int systemId) Report a parsed external parameter entity declaration. | public ContentHandler | getContentHandler() Return the current content handler. | public org.xml.sax.DTDHandler | getDTDHandler() Return the current DTD handler. | protected DeclHandler | getDeclHandler() Returns the DTD declaration event handler. | public boolean | getFeature(String featureId) Query the state of a feature.
Query the current state of any feature in a SAX2 parser. | public String[] | getFeaturesRecognized() Returns a list of features that this parser recognizes. | protected LexicalHandler | getLexicalHandler() Returns the lexical handler. | protected boolean | getNamespacePrefixes() Returns the http://xml.org/features/namespace-prefixes
value. | public String[] | getPropertiesRecognized() Returns a list of properties that this parser recognizes. | public Object | getProperty(String propertyId) 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: propertyId - The unique identifier (URI) of the propertybeing set. | public void | ignorableWhitespace(int dataIndex) Not called. | public void | ignorableWhitespace(char ch, int start, int length) Ignorable whitespace. | public void | internalEntityDecl(int entityName, int entityValue) Report an internal general entity declaration. | public void | internalPEDecl(int entityName, int entityValue) Report an internal parameter entity declaration. | public void | internalSubset(int internalSubset) New callback from DOM Level 2. | public void | notationDecl(int notationName, int publicId, int systemId) Receive notification of a notation declaration event. | public void | processingInstruction(int piTarget, int piData) Processing instruction. | public void | setContentHandler(ContentHandler handler) Allow an application to register a content event handler. | public void | setDTDHandler(org.xml.sax.DTDHandler handler) Allow an application to register a DTD event handler. | protected void | setDeclHandler(DeclHandler handler) Set the DTD declaration event handler. | public void | setDocumentHandler(DocumentHandler handler) Sets the document handler. | public void | setFeature(String featureId, boolean state) Set the state of any feature in a SAX2 parser. | protected void | setLexicalHandler(LexicalHandler handler) Set the lexical event handler. | protected void | setNamespacePrefixes(boolean process) Sets how the parser reports raw prefixed names,
and whether xmlns attributes are reported. | public void | setProperty(String propertyId, Object value) Set the value of any property in a SAX2 parser. | public void | startCDATA() Start CDATA section. | public void | startDTD(QName rootElement, int publicId, int systemId) This function will be called when a <!DOCTYPE...> declaration is
encountered. | public void | startDocument() Start document. | public void | startElement(QName element, XMLAttrList attrList, int attrListIndex) | public void | startEntityReference(int entityName, int entityType, int entityContext) Start entity reference. | public void | startNamespaceDeclScope(int prefix, int uri) Report the start of the scope of a namespace declaration. | public void | textDecl(int versionIndex, int encodingIndex) Text declaration. | public void | unparsedEntityDecl(int entityName, int publicId, int systemId, int notationName) Receive notification of an unparsed entity declaration event. | public void | xmlDecl(int versionIndex, int encodingIndex, int standaloneIndex) XML declaration. |
SAXParser | public SAXParser()(Code) | | Default constructor.
|
attlistDecl | public void attlistDecl(QName elementDecl, QName attributeDecl, int attType, boolean attList, String enumString, int attDefaultType, int attDefaultValue) throws Exception(Code) | | Report an attribute type declaration.
Only the effective (first) declaration for an attribute will
be reported. The type will be one of the strings "CDATA",
"ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY",
"ENTITIES", or "NOTATION", or a parenthesized token group with
the separator "|" and all whitespace removed.
Parameters: eName - The name of the associated element. Parameters: aName - The name of the attribute. Parameters: type - A string representing the attribute type. Parameters: valueDefault - A string representing the attribute default("#IMPLIED", "#REQUIRED", or "#FIXED") or null ifnone of these applies. Parameters: value - A string representing the attribute's default value,or null if there is none. exception: SAXException - The application may raise an exception. |
characters | public void characters(int dataIndex) throws Exception(Code) | | Not called.
|
characters | public void characters(char ch, int start, int length) throws Exception(Code) | | Characters.
|
elementDecl | public void elementDecl(QName elementDecl, int contentSpecType, int contentSpecIndex, XMLContentSpec.Provider contentSpecProvider) throws Exception(Code) | | Report an element type declaration.
The content model will consist of the string "EMPTY", the
string "ANY", or a parenthesised group, optionally followed
by an occurrence indicator. The model will be normalized so
that all whitespace is removed.
Parameters: name - The element type name. Parameters: model - The content model as a normalized string. exception: SAXException - The application may raise an exception. |
endDTD | public void endDTD() throws Exception(Code) | | This function will be called at the end of the DTD.
|
endEntityReference | public void endEntityReference(int entityName, int entityType, int entityContext) throws Exception(Code) | | End entity reference.
|
endNamespaceDeclScope | public void endNamespaceDeclScope(int prefix) throws Exception(Code) | | Report the end of the scope of a namespace declaration.
|
externalEntityDecl | public void externalEntityDecl(int entityName, int publicId, int systemId) throws Exception(Code) | | Report a parsed external general entity declaration.
|
externalPEDecl | public void externalPEDecl(int entityName, int publicId, int systemId) throws Exception(Code) | | Report a parsed external parameter entity declaration.
|
ignorableWhitespace | public void ignorableWhitespace(int dataIndex) throws Exception(Code) | | Not called.
|
ignorableWhitespace | public void ignorableWhitespace(char ch, int start, int length) throws Exception(Code) | | Ignorable whitespace.
|
internalEntityDecl | public void internalEntityDecl(int entityName, int entityValue) throws Exception(Code) | | Report an internal general entity declaration.
|
internalPEDecl | public void internalPEDecl(int entityName, int entityValue) throws Exception(Code) | | Report an internal parameter entity declaration.
|
internalSubset | public void internalSubset(int internalSubset)(Code) | | New callback from DOM Level 2. There is no corresponding SAX callout for this yet.
|
notationDecl | public void notationDecl(int notationName, int publicId, int systemId) throws Exception(Code) | | Receive notification of a notation declaration event.
|
processingInstruction | public void processingInstruction(int piTarget, int piData) throws Exception(Code) | | Processing instruction.
|
setContentHandler | public void setContentHandler(ContentHandler handler)(Code) | | Allow an application to register a content event handler.
If the application does not register a content handler, all
content events reported by the SAX parser will be silently
ignored.
Applications may register a new or different handler in the
middle of a parse, and the SAX parser must begin using the new
handler immediately.
Parameters: handler - The content handler. exception: java.lang.NullPointerException - If the handler argument is null. See Also: SAXParser.getContentHandler |
setDTDHandler | public void setDTDHandler(org.xml.sax.DTDHandler handler)(Code) | | Allow an application to register a DTD event handler.
If the application does not register a DTD handler, all DTD
events reported by the SAX parser will be silently ignored.
Applications may register a new or different handler in the
middle of a parse, and the SAX parser must begin using the new
handler immediately.
Parameters: handler - The DTD handler. exception: java.lang.NullPointerException - If the handler argument is null. See Also: SAXParser.getDTDHandler |
setDocumentHandler | public void setDocumentHandler(DocumentHandler handler)(Code) | | Sets the document handler.
|
setFeature | public void setFeature(String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException(Code) | | Set the state of any feature in a SAX2 parser. The parser
might not recognize the feature, and if it does recognize
it, it might not be able to fulfill the request.
Parameters: featureId - The unique identifier (URI) of the feature. Parameters: state - The requested state of the feature (true or false). exception: SAXNotRecognizedException - If therequested feature is not known. exception: SAXNotSupportedException - If therequested feature is known, but the requestedstate is not supported. |
setProperty | public void setProperty(String propertyId, Object value) throws SAXNotRecognizedException, SAXNotSupportedException(Code) | | Set the value of any property in a SAX2 parser. The parser
might not recognize the property, and if it does recognize
it, it might not support the requested value.
Parameters: propertyId - The unique identifier (URI) of the propertybeing set. Parameters: Object - The value to which the property is being set. exception: SAXNotRecognizedException - If therequested property is not known. exception: SAXNotSupportedException - If therequested property is known, but the requestedvalue is not supported. |
startCDATA | public void startCDATA() throws Exception(Code) | | Start CDATA section.
|
startDTD | public void startDTD(QName rootElement, int publicId, int systemId) throws Exception(Code) | | This function will be called when a <!DOCTYPE...> declaration is
encountered.
|
startDocument | public void startDocument() throws Exception(Code) | | Start document.
|
startEntityReference | public void startEntityReference(int entityName, int entityType, int entityContext) throws Exception(Code) | | Start entity reference.
|
startNamespaceDeclScope | public void startNamespaceDeclScope(int prefix, int uri) throws Exception(Code) | | Report the start of the scope of a namespace declaration.
|
textDecl | public void textDecl(int versionIndex, int encodingIndex) throws Exception(Code) | | Text declaration.
|
unparsedEntityDecl | public void unparsedEntityDecl(int entityName, int publicId, int systemId, int notationName) throws Exception(Code) | | Receive notification of an unparsed entity declaration event.
|
xmlDecl | public void xmlDecl(int versionIndex, int encodingIndex, int standaloneIndex) throws Exception(Code) | | XML declaration.
|
Methods inherited from org.apache.xerces.framework.XMLParser | public void addRecognizer(XMLDeclRecognizer recognizer)(Code)(Java Doc) protected boolean getAllowJavaEncodings() throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected boolean getContinueAfterFatalError() throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public EntityResolver getEntityResolver()(Code)(Java Doc) public ErrorHandler getErrorHandler()(Code)(Java Doc) protected boolean getExternalGeneralEntities() throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected boolean getExternalParameterEntities() throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public boolean getFeature(String featureId) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public String[] getFeaturesRecognized()(Code)(Java Doc) protected boolean getLoadDTDGrammar() throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected boolean getLoadExternalDTD() throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) final public Locator getLocator()(Code)(Java Doc) protected boolean getNamespaces() throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected boolean getNormalizeContents()(Code)(Java Doc) public String[] getPropertiesRecognized()(Code)(Java Doc) public Object getProperty(String propertyId) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected boolean getValidation() throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected boolean getValidationDynamic() throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected boolean getValidationSchema() throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected boolean getValidationSchemaFullChecking() throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected boolean getValidationWarnOnDuplicateAttdef() throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected boolean getValidationWarnOnUndeclaredElemdef() throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected String getXMLString() throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) final public Locale getfLocale()(Code)(Java Doc) final public XMLMessageProvider getfgDatatypeMessages()(Code)(Java Doc) final public XMLMessageProvider getfgImplementationMessages()(Code)(Java Doc) final public XMLMessageProvider getfgSchemaMessages()(Code)(Java Doc) final public XMLMessageProvider getfgXMLMessages()(Code)(Java Doc) protected void initHandlers(boolean sendCharDataAsCharArray, XMLDocumentHandler docHandler, XMLDocumentHandler.DTDHandler dtdHandler)(Code)(Java Doc) public boolean isFeatureRecognized(String featureId)(Code)(Java Doc) public boolean isPropertyRecognized(String propertyId)(Code)(Java Doc) public void parse(InputSource source) throws SAXException, IOException(Code)(Java Doc) public void parse(String systemId) throws SAXException, IOException(Code)(Java Doc) public boolean parseSome() throws Exception(Code)(Java Doc) public boolean parseSomeSetup(InputSource source) throws Exception(Code)(Java Doc) public void reportError(Locator locator, String errorDomain, int majorCode, int minorCode, Object args, int errorType) throws Exception(Code)(Java Doc) public void reset() throws Exception(Code)(Java Doc) protected void resetOrCopy() throws Exception(Code)(Java Doc) protected void setAllowJavaEncodings(boolean allow) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected void setContinueAfterFatalError(boolean continueAfterFatalError) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void setEntityResolver(EntityResolver resolver)(Code)(Java Doc) public void setErrorHandler(ErrorHandler handler)(Code)(Java Doc) protected void setExternalGeneralEntities(boolean expand) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected void setExternalNoNamespaceSchemaLocation(Object value) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected void setExternalParameterEntities(boolean expand) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected void setExternalSchemaLocation(Object value) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void setFeature(String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected void setLoadDTDGrammar(boolean loadDTDGrammar) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected void setLoadExternalDTD(boolean loadExternalDTD) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void setLocale(Locale locale) throws SAXException(Code)(Java Doc) protected void setNamespaces(boolean process) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected void setNormalizeAttributeValues(boolean normalize)(Code)(Java Doc) protected void setNormalizeContents(boolean normalize)(Code)(Java Doc) public void setProperty(String propertyId, Object value) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void setReaderFactory(XMLEntityReaderFactory readerFactory)(Code)(Java Doc) protected void setValidation(boolean validate) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected void setValidationDynamic(boolean dynamic) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected void setValidationSchema(boolean schema) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected void setValidationSchemaFullChecking(boolean schemaFullChecking) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected void setValidationWarnOnDuplicateAttdef(boolean warn) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) protected void setValidationWarnOnUndeclaredElemdef(boolean warn) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc)
|
|
|