org.xmlcml.cml
Class DefaultCMLDOMSAXBuilder

java.lang.Object
  |
  +--org.xml.sax.HandlerBase
        |
        +--uk.co.demon.ursus.dom.SAXAdapter
              |
              +--uk.co.demon.ursus.dom.SAXDOMBuilder
                    |
                    +--org.xmlcml.cml.CMLDOMSAXBuilderImpl
                          |
                          +--org.xmlcml.cml.DefaultCMLDOMSAXBuilder

public class DefaultCMLDOMSAXBuilder
extends CMLDOMSAXBuilderImpl

Builds a CMLDOM from SAX events


Fields inherited from class org.xmlcml.cml.CMLDOMSAXBuilderImpl
cmlDocument
 
Fields inherited from class uk.co.demon.ursus.dom.SAXDOMBuilder
currentNode, document, stack, start
 
Fields inherited from class uk.co.demon.ursus.dom.SAXAdapter
AELFRED, defaultParserClassName, defaultParserType, DXP, LARK, MSXML, nParserTypes, parser, parserTypeStrings, reader, urlString, XERCESNV, XERCESSAX, XML4J, XP
 
Constructor Summary
DefaultCMLDOMSAXBuilder()
           
DefaultCMLDOMSAXBuilder(org.xml.sax.Parser parser)
           
DefaultCMLDOMSAXBuilder(java.lang.String parserClassName)
           
 
Method Summary
 void endDocument()
          end of document.
 void endElement(java.lang.String name)
          end of Element.
 void startElement(java.lang.String name, org.xml.sax.AttributeList attributes)
          Receive notification of the start of an element.
 
Methods inherited from class org.xmlcml.cml.CMLDOMSAXBuilderImpl
characters, getCMLDocument, main, processingInstruction, runExecute, startDocument, test
 
Methods inherited from class uk.co.demon.ursus.dom.SAXDOMBuilder
getDocument
 
Methods inherited from class uk.co.demon.ursus.dom.SAXAdapter
addAttributes, attributeString, elementCounter, error, fatalError, getErrorMessage, ignorableWhitespace, notationDecl, parse, parse, parse, resolveEntity, setDocumentLocator, setParser, setParser, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCMLDOMSAXBuilder

public DefaultCMLDOMSAXBuilder()

DefaultCMLDOMSAXBuilder

public DefaultCMLDOMSAXBuilder(java.lang.String parserClassName)
                        throws java.lang.Exception

DefaultCMLDOMSAXBuilder

public DefaultCMLDOMSAXBuilder(org.xml.sax.Parser parser)
                        throws java.lang.Exception
Method Detail

startElement

public void startElement(java.lang.String name,
                         org.xml.sax.AttributeList attributes)
                  throws org.xml.sax.SAXException
Description copied from class: SAXAdapter
Receive notification of the start of an element. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).
Overrides:
startElement in class CMLDOMSAXBuilderImpl
Parameters:
name - The element type name.
attributes - The specified or defaulted attributes.
Throws:
org.xml.sax.SAXException - IO problems or parsing errors
See Also:
DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)

endElement

public void endElement(java.lang.String name)
                throws org.xml.sax.SAXException
Description copied from class: CMLDOMSAXBuilderImpl
end of Element. Special actions (in order):
Overrides:
endElement in class CMLDOMSAXBuilderImpl
Parameters:
name - The element type name.
attributes - The specified or defaulted attributes.
Throws:
org.xml.sax.SAXException - IO problems or parsing errors
See Also:
DocumentHandler.endElement(java.lang.String)

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
Description copied from class: CMLDOMSAXBuilderImpl
end of document. Default actions are:
Overrides:
endDocument in class CMLDOMSAXBuilderImpl
Tags copied from class: CMLDOMSAXBuilderImpl
Throws:
org.xml.sax.SAXException - IO problems or parsing errors