Package com.icl.saxon.tinytree
Class TinyBuilder
java.lang.Object
com.icl.saxon.output.Emitter
com.icl.saxon.om.Builder
com.icl.saxon.tinytree.TinyBuilder
- All Implemented Interfaces:
Result
,SourceLocator
,ErrorHandler
,Locator
The TinyBuilder class is responsible for taking a stream of SAX events and constructing
a Document tree, using the "TinyTree" implementation.
- Author:
- Michael H. Kay
-
Field Summary
Fields inherited from class com.icl.saxon.om.Builder
columnNumber, controller, currentDocument, discardComments, errorHandler, errorListener, errorOutput, estimatedLength, failed, inDTD, lineNumber, lineNumbering, previewManager, STANDARD_TREE, started, stripper, timing, TINY_TREE
Fields inherited from class com.icl.saxon.output.Emitter
locator, namePool, outputProperties, outputStream, systemId, writer
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int len) Callback interface for SAX: not for application usevoid
comment
(char[] ch, int start, int length) Callback interface for SAX: not for application usevoid
void
Callback interface for SAX: not for application usevoid
endElement
(int nameCode) Callback interface for SAX: not for application usevoid
processingInstruction
(String piname, 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
setUnparsedEntity
(String name, String uri) Set an unparsed entity in the documentvoid
Callback interface for SAX: not for application usevoid
startElement
(int nameCode, Attributes attributes, int[] namespaces, int namespacesUsed) Callback interface for SAX: not for application useMethods inherited from class com.icl.saxon.om.Builder
build, error, fatalError, getColumnNumber, getCurrentDocument, getLineNumber, getPublicId, getStripper, isTiming, reportError, setController, setDiscardCommentsAndPIs, setErrorHandler, setErrorListener, setErrorOutput, setLineNumbering, setPreviewManager, setRootNode, setStripper, setTiming, warning
Methods inherited from class com.icl.saxon.output.Emitter
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setDocumentLocator, setEscaping, setNamePool, setOutputProperties, setOutputStream, setSystemId, setWriter, usesWriter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.Locator
getSystemId
Methods inherited from interface javax.xml.transform.SourceLocator
getSystemId
-
Constructor Details
-
TinyBuilder
public TinyBuilder()
-
-
Method Details
-
createDocument
public void createDocument() -
startDocument
Callback interface for SAX: not for application use- Specified by:
startDocument
in classEmitter
- Throws:
TransformerException
-
endDocument
Callback interface for SAX: not for application use- Specified by:
endDocument
in classEmitter
- Throws:
TransformerException
-
startElement
public void startElement(int nameCode, Attributes attributes, int[] namespaces, int namespacesUsed) throws TransformerException Callback interface for SAX: not for application use- Specified by:
startElement
in classEmitter
- Parameters:
namespaces
- Array of namespace codes identifying the namespace prefix/uri pairs associated with this elementnamespacesUsed
- Number of significant entries within namespaces array- Throws:
TransformerException
-
endElement
Callback interface for SAX: not for application use- Specified by:
endElement
in classEmitter
- Throws:
TransformerException
-
characters
Callback interface for SAX: not for application use- Specified by:
characters
in classEmitter
- Throws:
TransformerException
-
processingInstruction
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. This requires a specially-adapted SAX driver.- Specified by:
processingInstruction
in classEmitter
- Throws:
TransformerException
-
comment
Callback interface for SAX: not for application use- Specified by:
comment
in classEmitter
- Throws:
TransformerException
-
setUnparsedEntity
Set an unparsed entity in the document- Specified by:
setUnparsedEntity
in classBuilder
-