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:
javax.xml.transform.Result,javax.xml.transform.SourceLocator,org.xml.sax.ErrorHandler,org.xml.sax.Locator
public class TinyBuilder extends Builder
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
-
-
Constructor Summary
Constructors Constructor Description TinyBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int len)Callback interface for SAX: not for application usevoidcomment(char[] ch, int start, int length)Callback interface for SAX: not for application usevoidcreateDocument()voidendDocument()Callback interface for SAX: not for application usevoidendElement(int nameCode)Callback interface for SAX: not for application usevoidprocessingInstruction(java.lang.String piname, java.lang.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.voidsetUnparsedEntity(java.lang.String name, java.lang.String uri)Set an unparsed entity in the documentvoidstartDocument()Callback interface for SAX: not for application usevoidstartElement(int nameCode, org.xml.sax.Attributes attributes, int[] namespaces, int namespacesUsed)Callback interface for SAX: not for application use-
Methods 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
-
-
-
-
Method Detail
-
createDocument
public void createDocument()
-
startDocument
public void startDocument() throws javax.xml.transform.TransformerExceptionCallback interface for SAX: not for application use- Specified by:
startDocumentin classEmitter- Throws:
javax.xml.transform.TransformerException
-
endDocument
public void endDocument() throws javax.xml.transform.TransformerExceptionCallback interface for SAX: not for application use- Specified by:
endDocumentin classEmitter- Throws:
javax.xml.transform.TransformerException
-
startElement
public void startElement(int nameCode, org.xml.sax.Attributes attributes, int[] namespaces, int namespacesUsed) throws javax.xml.transform.TransformerExceptionCallback interface for SAX: not for application use- Specified by:
startElementin classEmitternamespaces- Array of namespace codes identifying the namespace prefix/uri pairs associated with this elementnamespacesUsed- Number of significant entries within namespaces array- Throws:
javax.xml.transform.TransformerException
-
endElement
public void endElement(int nameCode) throws javax.xml.transform.TransformerExceptionCallback interface for SAX: not for application use- Specified by:
endElementin classEmitter- Throws:
javax.xml.transform.TransformerException
-
characters
public void characters(char[] ch, int start, int len) throws javax.xml.transform.TransformerExceptionCallback interface for SAX: not for application use- Specified by:
charactersin classEmitter- Throws:
javax.xml.transform.TransformerException
-
processingInstruction
public void processingInstruction(java.lang.String piname, java.lang.String remainder) throws javax.xml.transform.TransformerExceptionCallback 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:
processingInstructionin classEmitter- Throws:
javax.xml.transform.TransformerException
-
comment
public void comment(char[] ch, int start, int length) throws javax.xml.transform.TransformerExceptionCallback interface for SAX: not for application use
-
setUnparsedEntity
public void setUnparsedEntity(java.lang.String name, java.lang.String uri)Set an unparsed entity in the document- Specified by:
setUnparsedEntityin classBuilder
-
-