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 boolean
protected boolean
protected boolean
protected boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
void
endElement
(String uri, String localName, String qName) static boolean
isDelimiter
(char c) void
void
startElement
(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, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getBodyNode
in interfaceDomTree
-
getTextNodes
- Specified by:
getTextNodes
in interfaceDomTree
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classDefaultHandler
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
isDelimiter
public static boolean isDelimiter(char c)
-