public class HTMLBuilder extends Object implements DocumentHandler
| Modifier and Type | Field and Description |
|---|---|
protected 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 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 and Description |
|---|
HTMLBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] text,
int start,
int length) |
void |
characters(String text) |
void |
endDocument() |
void |
endElement(String tagName) |
org.w3c.dom.html.HTMLDocument |
getHTMLDocument() |
void |
ignorableWhitespace(char[] text,
int start,
int length) |
void |
processingInstruction(String target,
String instruction) |
void |
setDocumentLocator(Locator locator) |
void |
startDocument() |
void |
startElement(String tagName,
AttributeList attrList) |
protected HTMLDocumentImpl _document
protected ElementImpl _current
protected Vector _preRootNodes
public void startDocument()
throws SAXException
startDocument in interface DocumentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface DocumentHandlerSAXExceptionpublic void startElement(String tagName, AttributeList attrList) throws SAXException
startElement in interface DocumentHandlerSAXExceptionpublic void endElement(String tagName) throws SAXException
endElement in interface DocumentHandlerSAXExceptionpublic void characters(String text) throws SAXException
SAXExceptionpublic void characters(char[] text,
int start,
int length)
throws SAXException
characters in interface DocumentHandlerSAXExceptionpublic void ignorableWhitespace(char[] text,
int start,
int length)
throws SAXException
ignorableWhitespace in interface DocumentHandlerSAXExceptionpublic void processingInstruction(String target, String instruction) throws SAXException
processingInstruction in interface DocumentHandlerSAXExceptionpublic org.w3c.dom.html.HTMLDocument getHTMLDocument()
public void setDocumentLocator(Locator locator)
setDocumentLocator in interface DocumentHandlerCopyright © 2017 JBoss by Red Hat. All rights reserved.