|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.event.Builder
The abstract Builder class is responsible for taking a stream of SAX events and constructing a Document tree. There is one concrete subclass for each tree implementation.
Field Summary | |
protected Configuration |
config
|
protected NodeInfo |
currentRoot
|
protected boolean |
lineNumbering
|
protected NamePool |
namePool
|
protected PipelineConfiguration |
pipe
|
static int |
STANDARD_TREE
|
protected boolean |
started
|
protected java.lang.String |
systemId
|
protected boolean |
timing
|
static int |
TINY_TREE
|
Fields inherited from interface javax.xml.transform.Result |
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
Constructor Summary | |
Builder()
create a Builder and initialise variables |
Method Summary | |
static NodeInfo |
build(javax.xml.transform.Source source,
Stripper stripper,
Configuration config)
Static method to build a document from any kind of Source object. |
void |
close()
Notify the end of the event stream |
void |
endDocument()
Notify the end of a document node |
Configuration |
getConfiguration()
|
NodeInfo |
getCurrentRoot()
Get the current root node. |
PipelineConfiguration |
getPipelineConfiguration()
Get the pipeline configuration |
java.lang.String |
getSystemId()
|
boolean |
isTiming()
Get timing option |
void |
open()
Notify the start of the event stream |
void |
setLineNumbering(boolean is)
|
void |
setPipelineConfiguration(PipelineConfiguration pipe)
Set the pipeline configuration |
void |
setRootNode(DocumentInfo doc)
Set the root (document) node to use. |
void |
setSystemId(java.lang.String systemId)
Set the System ID of the destination tree |
void |
setTiming(boolean on)
Set timing option on or off |
void |
startDocument(int properties)
Start of a document node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.saxon.event.Receiver |
attribute, characters, comment, endElement, namespace, processingInstruction, setUnparsedEntity, startContent, startElement |
Field Detail |
public static final int STANDARD_TREE
public static final int TINY_TREE
protected PipelineConfiguration pipe
protected Configuration config
protected NamePool namePool
protected java.lang.String systemId
protected NodeInfo currentRoot
protected boolean lineNumbering
protected boolean started
protected boolean timing
Constructor Detail |
public Builder()
Method Detail |
public void setPipelineConfiguration(PipelineConfiguration pipe)
Receiver
setPipelineConfiguration
in interface Receiver
public PipelineConfiguration getPipelineConfiguration()
Receiver
getPipelineConfiguration
in interface Receiver
public Configuration getConfiguration()
public void setSystemId(java.lang.String systemId)
Receiver
setSystemId
in interface Receiver
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.Result
public void setLineNumbering(boolean is)
public void setRootNode(DocumentInfo doc)
public void setTiming(boolean on)
public boolean isTiming()
public void open() throws XPathException
Receiver
open
in interface Receiver
XPathException
public void close() throws XPathException
Receiver
close
in interface Receiver
XPathException
public void startDocument(int properties) throws XPathException
startDocument
in interface Receiver
XPathException
public void endDocument() throws XPathException
endDocument
in interface Receiver
XPathException
public NodeInfo getCurrentRoot()
public static NodeInfo build(javax.xml.transform.Source source, Stripper stripper, Configuration config) throws XPathException
source
- Any javax.xml.transform.Source objectstripper
- A stripper object, if whitespace text nodes are to be stripped;
otherwise null.config
- The Configuration object
XPathException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |