public class

HTMLBuilder

extends Object
implements DocumentHandler
java.lang.Object
   ↳ org.apache.html.dom.HTMLBuilder

Class Overview

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.

Summary

Fields
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.
Public Constructors
HTMLBuilder()
Public Methods
void characters(char[] text, int start, int length)
void characters(String text)
void endDocument()
void endElement(String tagName)
HTMLDocument getHTMLDocument()
void ignorableWhitespace(char[] text, int start, int length)
void processingInstruction(String target, String instruction)
void setDocumentLocator(Locator locator)
void startDocument()
synchronized void startElement(String tagName, AttributeList attrList)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.xml.sax.DocumentHandler

Fields

protected ElementImpl _current

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

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.

Public Constructors

public HTMLBuilder ()

Public Methods

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

Throws
SAXException

public void characters (String text)

Throws
SAXException

public void endDocument ()

Throws
SAXException

public void endElement (String tagName)

Throws
SAXException

public HTMLDocument getHTMLDocument ()

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

Throws
SAXException

public void processingInstruction (String target, String instruction)

Throws
SAXException

public void setDocumentLocator (Locator locator)

public void startDocument ()

Throws
SAXException

public synchronized void startElement (String tagName, AttributeList attrList)

Throws
SAXException