org.xml.sax.DocumentHandlerpublic class HTMLBuilder
extends java.lang.Object
implements org.xml.sax.DocumentHandler
| Modifier and Type | Field | Description |
|---|---|---|
protected org.apache.xerces.dom.ElementImpl |
_current |
The current node in the document into which elements, text and
other nodes will be inserted.
|
protected HTMLDocumentImpl |
_document |
The document that is being built.
|
protected java.util.Vector |
_preRootNodes |
The document is only created the same time as the document element, however, certain
nodes may precede the document element (comment and PI), and they are accumulated
in this vector.
|
| Constructor | Description |
|---|---|
HTMLBuilder() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
characters(char[] text,
int start,
int length) |
|
void |
characters(java.lang.String text) |
|
void |
endDocument() |
|
void |
endElement(java.lang.String tagName) |
|
org.w3c.dom.html.HTMLDocument |
getHTMLDocument() |
|
void |
ignorableWhitespace(char[] text,
int start,
int length) |
|
void |
processingInstruction(java.lang.String target,
java.lang.String instruction) |
|
void |
setDocumentLocator(org.xml.sax.Locator locator) |
|
void |
startDocument() |
|
void |
startElement(java.lang.String tagName,
org.xml.sax.AttributeList attrList) |
protected HTMLDocumentImpl _document
protected org.apache.xerces.dom.ElementImpl _current
protected java.util.Vector _preRootNodes
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXExceptionpublic void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXExceptionpublic void startElement(java.lang.String tagName,
org.xml.sax.AttributeList attrList)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXExceptionpublic void endElement(java.lang.String tagName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXExceptionpublic void characters(java.lang.String text)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic void characters(char[] text,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXExceptionpublic void ignorableWhitespace(char[] text,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXExceptionpublic void processingInstruction(java.lang.String target,
java.lang.String instruction)
throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXExceptionpublic org.w3c.dom.html.HTMLDocument getHTMLDocument()
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.DocumentHandlerCopyright ? 1999-2010 The Apache Software Foundation. All Rights Reserved.