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 DocumentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface DocumentHandler
SAXException
public void startElement(String tagName, AttributeList attrList) throws SAXException
startElement
in interface DocumentHandler
SAXException
public void endElement(String tagName) throws SAXException
endElement
in interface DocumentHandler
SAXException
public void characters(String text) throws SAXException
SAXException
public void characters(char[] text, int start, int length) throws SAXException
characters
in interface DocumentHandler
SAXException
public void ignorableWhitespace(char[] text, int start, int length) throws SAXException
ignorableWhitespace
in interface DocumentHandler
SAXException
public void processingInstruction(String target, String instruction) throws SAXException
processingInstruction
in interface DocumentHandler
SAXException
public org.w3c.dom.html.HTMLDocument getHTMLDocument()
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface DocumentHandler
Copyright © 2016 JBoss by Red Hat. All rights reserved.