net.sf.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

Field Summary
static intPARENT_POINTER_INTERVAL
Method Summary
voidattribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties)
voidcharacters(CharSequence chars, int locationId, int properties)
Callback interface for SAX: not for application use
voidclose()
voidcomment(CharSequence chars, int locationId, int properties)
Callback interface for SAX: not for application use
voidendDocument()
Callback interface for SAX: not for application use
voidendElement()
Callback interface for SAX: not for application use
int[]getSizeParameters()
TinyTreegetTree()
voidnamespace(int namespaceCode, int properties)
voidopen()
Open the event stream
voidprocessingInstruction(String piname, CharSequence remainder, int locationId, int properties)
Callback interface for SAX: not for application use
voidsetSizeParameters(int[] params)
voidsetUnparsedEntity(String name, String uri, String publicId)
Set an unparsed entity in the document
voidstartContent()
voidstartDocument(int properties)
Write a document node to the tree
voidstartElement(int nameCode, int typeCode, int locationId, int properties)
Notify the start tag of an element

Field Detail

PARENT_POINTER_INTERVAL

public static final int PARENT_POINTER_INTERVAL

Method Detail

attribute

public void attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties)

characters

public void characters(CharSequence chars, int locationId, int properties)
Callback interface for SAX: not for application use

close

public void close()

comment

public void comment(CharSequence chars, int locationId, int properties)
Callback interface for SAX: not for application use

endDocument

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

endElement

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

getSizeParameters

public int[] getSizeParameters()

getTree

public TinyTree getTree()

namespace

public void namespace(int namespaceCode, int properties)

open

public void open()
Open the event stream

processingInstruction

public void processingInstruction(String piname, CharSequence remainder, int locationId, int properties)
Callback interface for SAX: not for application use

setSizeParameters

public void setSizeParameters(int[] params)

setUnparsedEntity

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

startContent

public void startContent()

startDocument

public void startDocument(int properties)
Write a document node to the tree

startElement

public void startElement(int nameCode, int typeCode, int locationId, int properties)
Notify the start tag of an element