Google

: Class TinyBuilder

com.icl.saxon.tinytree
Class TinyBuilder

java.lang.Object

  |

  +--com.icl.saxon.output.Emitter

        |

        +--com.icl.saxon.om.Builder

              |

              +--com.icl.saxon.tinytree.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.


Fields inherited from class com.icl.saxon.om.Builder
columnNumber, 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
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
 
Constructor Summary
TinyBuilder()
           
  int[] namespaces, int namespacesUsed)
          Callback interface for SAX: not for application use
Method Summary
 void characters(char[] ch, int start, int len)
          Callback interface for SAX: not for application use
 void comment(char[] ch, int start, int length)
          Callback interface for SAX: not for application use
 void createDocument()
           
 void endDocument()
          Callback interface for SAX: not for application use
 void endElement(int nameCode)
          Callback interface for SAX: not for application use
 void processingInstruction(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.
 void setUnparsedEntity(java.lang.String name, java.lang.String uri)
          Set an unparsed entity in the document
 void startDocument()
          Callback interface for SAX: not for application use
 void
 
Methods inherited from class com.icl.saxon.om.Builder
 
Methods inherited from class com.icl.saxon.output.Emitter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSystemId
getSystemId
 

Constructor Detail

TinyBuilder

public TinyBuilder()
Method Detail

createDocument

public void createDocument()

startDocument

public void startDocument()

Callback interface for SAX: not for application use
Overrides:
startDocument in class Emitter

endDocument

public void endDocument()

Callback interface for SAX: not for application use
Overrides:
endDocument in class Emitter

startElement
public void startElement(int nameCode,
                         int[] namespaces,
                         int namespacesUsed)

Callback interface for SAX: not for application use
Following copied from class: com.icl.saxon.output.Emitter
Parameters:
namespaces - Array of namespace codes identifying the namespace prefix/uri pairs associated with this element
nscount - Number of significant entries within namespaces array

endElement

public void endElement(int nameCode)

Callback interface for SAX: not for application use
Overrides:
endElement in class Emitter

characters

public void characters(char[] ch,
                       int start,
                       int len)

Callback interface for SAX: not for application use
Overrides:
characters in class Emitter

processingInstruction

public void processingInstruction(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. This requires a specially-adapted SAX driver.
Overrides:
processingInstruction in class Emitter

comment

public void comment(char[] ch,
                    int start,
                    int length)

Callback interface for SAX: not for application use
Overrides:
comment in class Emitter

setUnparsedEntity

public void setUnparsedEntity(java.lang.String name,
                              java.lang.String uri)
Set an unparsed entity in the document
Overrides:
setUnparsedEntity in class Builder