com.icl.saxon.tinytree

Class TinyBuilder

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

Method Summary
voidcharacters(char[] ch, int start, int len)
Callback interface for SAX: not for application use
voidcomment(char[] ch, int start, int length)
Callback interface for SAX: not for application use
voidcreateDocument()
voidendDocument()
Callback interface for SAX: not for application use
voidendElement(int nameCode)
Callback interface for SAX: not for application use
voidprocessingInstruction(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.
voidsetUnparsedEntity(String name, String uri)
Set an unparsed entity in the document
voidstartDocument()
Callback interface for SAX: not for application use
voidstartElement(int nameCode, Attributes attributes, int[] namespaces, int namespacesUsed)
Callback interface for SAX: not for application use

Method Detail

characters

public void characters(char[] ch, int start, int len)
Callback interface for SAX: not for application use

comment

public void comment(char[] ch, int start, int length)
Callback interface for SAX: not for application use

createDocument

public void createDocument()

endDocument

public void endDocument()
Callback interface for SAX: not for application use

endElement

public void endElement(int nameCode)
Callback interface for SAX: not for application use

processingInstruction

public void 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. This requires a specially-adapted SAX driver.

setUnparsedEntity

public void setUnparsedEntity(String name, String uri)
Set an unparsed entity in the document

startDocument

public void startDocument()
Callback interface for SAX: not for application use

startElement

public void startElement(int nameCode, Attributes attributes, int[] namespaces, int namespacesUsed)
Callback interface for SAX: not for application use