Package org.outerj.daisy.diff.html.dom
Class DomTreeBuilder
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.outerj.daisy.diff.html.dom.DomTreeBuilder
- All Implemented Interfaces:
DomTree,ContentHandler,DTDHandler,EntityResolver,ErrorHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidvoidendElement(String uri, String localName, String qName) static booleanisDelimiter(char c) voidvoidstartElement(String uri, String localName, String qName, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
documentStarted
protected boolean documentStarted -
documentEnded
protected boolean documentEnded -
bodyStarted
protected boolean bodyStarted -
bodyEnded
protected boolean bodyEnded
-
-
Constructor Details
-
DomTreeBuilder
public DomTreeBuilder()
-
-
Method Details
-
getBodyNode
- Specified by:
getBodyNodein interfaceDomTree
-
getTextNodes
- Specified by:
getTextNodesin interfaceDomTree
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classDefaultHandler- Throws:
SAXException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
isDelimiter
public static boolean isDelimiter(char c)
-