XML for Java 2.0.6

com.ibm.xml.parsers
Class SAXParser

java.lang.Object
  |
  +--com.ibm.xml.framework.XMLParser
        |
        +--com.ibm.xml.parsers.SAXParser
Direct Known Subclasses:
ValidatingSAXParser

public class SAXParser
extends XMLParser

Version:
Revision: 65 1.12 src/com/ibm/xml/parsers/SAXParser.java, parser, xml4j2, xml4j2_0_6

Constructor Summary
SAXParser()
           
 
Method Summary
 void attlistDecl(int elementIndex, int attDefIndex)
           
 void characters(char[] ch, int start, int length, boolean cdataSection)
           
 void characters(int dataIndex, boolean cdataSection)
          Not called
 void comment(int dataIndex)
           
 void doctypeDecl(int rootElementNameIndex)
          This function will be called when a <!DOCTYPE...> declaration is encountered.
 void elementDecl(int elementIndex)
           
 void endDocument()
           
 void endElement(int elementNameIndex)
           
 void endEntityReference(int entityIndex)
           
 void endExternalSubset()
          This function will be called at the end of the "external subset" of a doctype declaration.
 void endInternalSubset()
          This function will be called at the end of the "internal subset" of a doctype declaration.
 void externalEntityDecl(int entityIndex)
           
 void ignorableWhitespace(char[] ch, int start, int length, boolean cdataSection)
           
 void ignorableWhitespace(int dataIndex, boolean cdataSection)
          Not called
 void internalEntityDecl(int entityIndex)
           
 void notationDecl(int notationIndex)
           
 void processingInstruction(int targetIndex, int dataIndex)
           
 boolean sendCharDataAsCharArray()
           
 void setDocumentHandler(DocumentHandler handler)
           
 void setDTDHandler(DTDHandler handler)
           
 void setEntityResolver(EntityResolver resolver)
           
 void startDocument(int versionIndex, int encodingIndex, int standAloneIndex)
           
 void startElement(int elementNameIndex, int attrListIndex)
           
 void startEntityReference(int entityIndex)
           
 void startExternalSubset(int publicIdStringIndex, int systemIdStringIndex)
          This function will be called at the start of the "external subset" of a doctype declaration.
 void startInternalSubset()
          This function will be called at the start of the "internal subset" of a doctype declaration.
 void unparsedEntityDecl(int entityIndex)
           
 
Methods inherited from class com.ibm.xml.framework.XMLParser
checkHandlers, error, error1, error2, error3, error4, errorHandlingEnabled, getAllowJavaEncodingName, getCheckNamespace, getContinueAfterFatalError, getDocumentHandler, getDocumentTypeHandler, getEntityHandler, getErrorHandler, getErrorMsgString, getLocator, getParserState, getScanner, getValidationHandler, getWarningOnDuplicateAttDef, handleError, isFatal, isWarning, loadCatalog, parse, parse, reset, resetOrCopy, setAllowJavaEncodingName, setCheckNamespace, setContinueAfterFatalError, setDocumentHandler, setDocumentTypeHandler, setEntityHandler, setErrorHandler, setLocale, setValidationHandler, setWarningOnDuplicateAttDef, useDefaultValidationHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXParser

public SAXParser()
Method Detail

setEntityResolver

public void setEntityResolver(EntityResolver resolver)
Overrides:
setEntityResolver in class XMLParser

setDTDHandler

public void setDTDHandler(DTDHandler handler)
Overrides:
setDTDHandler in class XMLParser

setDocumentHandler

public void setDocumentHandler(DocumentHandler handler)
Overrides:
setDocumentHandler in class XMLParser

doctypeDecl

public void doctypeDecl(int rootElementNameIndex)
                 throws java.lang.Exception
This function will be called when a <!DOCTYPE...> declaration is encountered.

startInternalSubset

public void startInternalSubset()
                         throws java.lang.Exception
This function will be called at the start of the "internal subset" of a doctype declaration.

endInternalSubset

public void endInternalSubset()
                       throws java.lang.Exception
This function will be called at the end of the "internal subset" of a doctype declaration.

startExternalSubset

public void startExternalSubset(int publicIdStringIndex,
                                int systemIdStringIndex)
                         throws java.lang.Exception
This function will be called at the start of the "external subset" of a doctype declaration.

endExternalSubset

public void endExternalSubset()
                       throws java.lang.Exception
This function will be called at the end of the "external subset" of a doctype declaration.

elementDecl

public void elementDecl(int elementIndex)
                 throws java.lang.Exception

attlistDecl

public void attlistDecl(int elementIndex,
                        int attDefIndex)
                 throws java.lang.Exception

internalEntityDecl

public void internalEntityDecl(int entityIndex)
                        throws java.lang.Exception

externalEntityDecl

public void externalEntityDecl(int entityIndex)
                        throws java.lang.Exception

unparsedEntityDecl

public void unparsedEntityDecl(int entityIndex)
                        throws java.lang.Exception

notationDecl

public void notationDecl(int notationIndex)
                  throws java.lang.Exception

sendCharDataAsCharArray

public boolean sendCharDataAsCharArray()
Overrides:
sendCharDataAsCharArray in class XMLParser

startDocument

public void startDocument(int versionIndex,
                          int encodingIndex,
                          int standAloneIndex)
                   throws java.lang.Exception

endDocument

public void endDocument()
                 throws java.lang.Exception

startElement

public void startElement(int elementNameIndex,
                         int attrListIndex)
                  throws java.lang.Exception

endElement

public void endElement(int elementNameIndex)
                throws java.lang.Exception

startEntityReference

public void startEntityReference(int entityIndex)
                          throws java.lang.Exception

endEntityReference

public void endEntityReference(int entityIndex)
                        throws java.lang.Exception

characters

public void characters(int dataIndex,
                       boolean cdataSection)
                throws java.lang.Exception
Not called

ignorableWhitespace

public void ignorableWhitespace(int dataIndex,
                                boolean cdataSection)
                         throws java.lang.Exception
Not called

processingInstruction

public void processingInstruction(int targetIndex,
                                  int dataIndex)
                           throws java.lang.Exception

comment

public void comment(int dataIndex)
             throws java.lang.Exception

characters

public void characters(char[] ch,
                       int start,
                       int length,
                       boolean cdataSection)
                throws java.lang.Exception

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length,
                                boolean cdataSection)
                         throws java.lang.Exception

XML for Java 2.0.6