public class TreeBuilder extends Builder
columnNumber, controller, currentDocument, discardComments, errorHandler, errorListener, errorOutput, estimatedLength, failed, inDTD, lineNumber, lineNumbering, previewManager, STANDARD_TREE, started, stripper, timing, TINY_TREElocator, namePool, outputProperties, outputStream, systemId, writerPI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING| Constructor and Description |
|---|
TreeBuilder()
create a Builder and initialise variables
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Callback interface for SAX: not for application use
|
void |
comment(char[] ch,
int start,
int length)
Callback interface for SAX (part of LexicalHandler interface): not for application use
|
void |
endDocument()
Callback interface for SAX: not for application use
|
void |
endElement(int nameCode)
Callback interface for SAX: not for application use
|
void |
graftElement(ElementImpl element)
graftElement() allows an element node to be transferred from one tree to another.
|
void |
processingInstruction(String name,
String remainder)
Callback interface for SAX: not for application use
Note: because SAX1 does not deliver comment nodes, we get these in the form of a processing instruction with a null name. |
void |
setDocumentLocator(Locator locator)
Callback interface for SAX: not for application use
|
void |
setNodeFactory(NodeFactory factory)
Set the Node Factory to use.
|
void |
setUnparsedEntity(String name,
String uri)
Set an unparsed entity URI for the document
|
void |
startDocument()
Callback interface for SAX: not for application use
|
void |
startElement(int nameCode,
Attributes attributes,
int[] namespaces,
int namespacesUsed)
Callback interface for SAX: not for application use
|
build, error, fatalError, getColumnNumber, getCurrentDocument, getLineNumber, getPublicId, getStripper, isTiming, reportError, setController, setDiscardCommentsAndPIs, setErrorHandler, setErrorListener, setErrorOutput, setLineNumbering, setPreviewManager, setRootNode, setStripper, setTiming, warninggetNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setEscaping, setNamePool, setOutputProperties, setOutputStream, setSystemId, setWriter, usesWriterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSystemIdgetSystemIdpublic void setNodeFactory(NodeFactory factory)
public void startDocument()
throws TransformerException
startDocument in class EmitterTransformerExceptionpublic void endDocument()
throws TransformerException
endDocument in class EmitterTransformerExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in class Emitterpublic void startElement(int nameCode,
Attributes attributes,
int[] namespaces,
int namespacesUsed)
throws TransformerException
startElement in class Emitternamespaces - Array of namespace codes identifying the namespace prefix/uri
pairs associated with this elementnamespacesUsed - Number of significant entries within namespaces arrayTransformerExceptionpublic void endElement(int nameCode)
throws TransformerException
endElement in class EmitterTransformerExceptionpublic void characters(char[] ch,
int start,
int length)
throws TransformerException
characters in class EmitterTransformerExceptionpublic void processingInstruction(String name, String remainder)
processingInstruction in class Emitterpublic void comment(char[] ch,
int start,
int length)
throws TransformerException
comment in class EmitterTransformerExceptionpublic void graftElement(ElementImpl element) throws TransformerException
TransformerExceptionpublic void setUnparsedEntity(String name, String uri)
setUnparsedEntity in class Builder