|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.event.Builder
public abstract class 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 DocumentInfo |
currentDocument
|
protected boolean |
lineNumbering
|
protected Locator |
locator
|
protected NamePool |
namePool
|
static int |
STANDARD_TREE
|
protected boolean |
started
|
protected 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(Source source,
Stripper stripper,
Configuration config)
Static method to build a document from any kind of Source object. |
void |
endDocument()
Notify the end of the document |
DocumentInfo |
getCurrentDocument()
Get the current document |
NamePool |
getNamePool()
Get the namePool in which all name codes can be found |
String |
getSystemId()
|
boolean |
isTiming()
Get timing option |
void |
setDocumentLocator(Locator loc)
Set locator, to identify position in the document. |
void |
setLineNumbering(boolean onOrOff)
Set line numbering on or off |
void |
setNamePool(NamePool pool)
Set the namePool in which all name codes can be found |
void |
setRootNode(DocumentInfo doc)
Set the root (document) node to use. |
void |
setSystemId(String systemId)
Set the System ID of the destination tree |
void |
setTiming(boolean on)
Set timing option on or off |
void |
startDocument()
Set output for error messages produced by the default error handler. |
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 NamePool namePool
protected String systemId
protected Locator locator
protected DocumentInfo currentDocument
protected boolean started
protected boolean timing
protected boolean lineNumbering
Constructor Detail |
---|
public Builder()
Method Detail |
---|
public void setNamePool(NamePool pool)
Receiver
setNamePool
in interface Receiver
public NamePool getNamePool()
Receiver
getNamePool
in interface Receiver
public void setSystemId(String systemId)
Receiver
setSystemId
in interface Result
setSystemId
in interface Receiver
public String getSystemId()
getSystemId
in interface Result
public void setDocumentLocator(Locator loc)
Receiver
setDocumentLocator
in interface Receiver
public void setRootNode(DocumentInfo doc)
public void setTiming(boolean on)
public boolean isTiming()
public void setLineNumbering(boolean onOrOff)
public void startDocument() throws TransformerException
startDocument
in interface Receiver
writer
- The Writer to use for error messages
TransformerException
public void endDocument() throws TransformerException
Receiver
endDocument
in interface Receiver
TransformerException
public DocumentInfo getCurrentDocument()
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 object
XPathException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |