org.apache.html.dom

Class HTMLBuilder

public class HTMLBuilder extends Object implements DocumentHandler

This is a SAX document handler that is used to build an HTML document. It can build a document from any SAX parser, but is specifically tuned for working with the OpenXML HTML parser.

Version: $Revision: 1.7 $ $Date: 2004/02/24 23:34:00 $

Author: Assaf Arkin

Field Summary
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.
Method Summary
voidcharacters(String text)
voidcharacters(char[] text, int start, int length)
voidendDocument()
voidendElement(String tagName)
HTMLDocumentgetHTMLDocument()
voidignorableWhitespace(char[] text, int start, int length)
voidprocessingInstruction(String target, String instruction)
voidsetDocumentLocator(Locator locator)
voidstartDocument()
voidstartElement(String tagName, AttributeList attrList)

Field Detail

_current

protected ElementImpl _current
The current node in the document into which elements, text and other nodes will be inserted. This starts as the document iself and reflects each element that is currently being parsed.

_document

protected HTMLDocumentImpl _document
The document that is being built.

_preRootNodes

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.

Method Detail

characters

public void characters(String text)

characters

public void characters(char[] text, int start, int length)

endDocument

public void endDocument()

endElement

public void endElement(String tagName)

getHTMLDocument

public HTMLDocument getHTMLDocument()

ignorableWhitespace

public void ignorableWhitespace(char[] text, int start, int length)

processingInstruction

public void processingInstruction(String target, String instruction)

setDocumentLocator

public void setDocumentLocator(Locator locator)

startDocument

public void startDocument()

startElement

public void startElement(String tagName, AttributeList attrList)
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.