public abstract class Builder extends Object implements Receiver
Modifier and Type | Field and Description |
---|---|
protected Configuration |
config |
protected NodeInfo |
currentRoot |
protected boolean |
lineNumbering |
static int |
LINKED_TREE
Constant denoting the "linked tree" in which each node is represented as an object
|
protected NamePool |
namePool |
protected PipelineConfiguration |
pipe |
static int |
STANDARD_TREE
Alternative constant denoting the "linked tree" in which each node is represented as an object
Retained for backwards compatibility
|
protected boolean |
started |
protected String |
systemId |
protected boolean |
timing |
static int |
TINY_TREE
Constant denoting the "tiny tree" in which the tree is represented internally using arrays of integers
|
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
Constructor and Description |
---|
Builder()
create a Builder and initialise variables
|
Modifier and Type | Method and Description |
---|---|
static NodeInfo |
build(Source source,
Stripper stripper,
Configuration config)
Static method to build a document from any kind of Source object.
|
static NodeInfo |
build(Source source,
Stripper stripper,
PipelineConfiguration pipe)
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
|
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 |
setSystemId(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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attribute, characters, comment, endElement, namespace, processingInstruction, setUnparsedEntity, startContent, startElement
public static final int LINKED_TREE
public static final int STANDARD_TREE
public static final int TINY_TREE
protected PipelineConfiguration pipe
protected Configuration config
protected NamePool namePool
protected String systemId
protected NodeInfo currentRoot
protected boolean lineNumbering
protected boolean started
protected boolean timing
public void setPipelineConfiguration(PipelineConfiguration pipe)
Receiver
setPipelineConfiguration
in interface Receiver
public PipelineConfiguration getPipelineConfiguration()
Receiver
getPipelineConfiguration
in interface Receiver
public Configuration getConfiguration()
public void setSystemId(String systemId)
Receiver
setSystemId
in interface Result
setSystemId
in interface Receiver
public String getSystemId()
getSystemId
in interface Result
public void setLineNumbering(boolean is)
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(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 objectXPathException
public static NodeInfo build(Source source, Stripper stripper, PipelineConfiguration pipe) throws XPathException
source
- Any javax.xml.transform.Source objectstripper
- A stripper object, if whitespace text nodes are to be stripped;
otherwise null.pipe
- The PipelineConfiguration objectXPathException