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. |
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.xml.sax.DocumentHandler
abstract
void
|
characters(char[] arg0, int arg1, int arg2)
|
abstract
void
|
endDocument()
|
abstract
void
|
endElement(String arg0)
|
abstract
void
|
ignorableWhitespace(char[] arg0, int arg1, int arg2)
|
abstract
void
|
processingInstruction(String arg0, String arg1)
|
abstract
void
|
setDocumentLocator(Locator arg0)
|
abstract
void
|
startDocument()
|
abstract
void
|
startElement(String arg0, AttributeList arg1)
|
|
Fields
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.
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 Methods
public
void
characters
(char[] text, int start, int length)
public
void
characters
(String text)
public
void
endDocument
()
public
void
endElement
(String tagName)
public
HTMLDocument
getHTMLDocument
()
public
void
ignorableWhitespace
(char[] text, int start, int length)
public
void
processingInstruction
(String target, String instruction)
public
void
setDocumentLocator
(Locator locator)
public
void
startDocument
()
public
synchronized
void
startElement
(String tagName, AttributeList attrList)