Package com.saxonica.ee.stream.feed
Class ElementCreatorFeed
java.lang.Object
net.sf.saxon.event.Outputter
net.sf.saxon.event.ProxyOutputter
com.saxonica.ee.stream.feed.ItemFeed
com.saxonica.ee.stream.feed.ComplexNodeEventFeed
com.saxonica.ee.stream.feed.ElementCreatorFeed
This event feed supports instructions that create a document or element node. The events
representing the start and end of the element or document are written to the destination
receiver during the open() and close() calls. Between these two calls, the child instruction
representing the content of the document or element pushes its output to the same destination
receiver.
The instruction-dependent code is contained in the processLeft() and processRight() methods
-
Field Summary
Fields inherited from class com.saxonica.ee.stream.feed.ComplexNodeEventFeed
nextFields inherited from class net.sf.saxon.event.Outputter
pipelineConfiguration, systemIdFields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING -
Constructor Summary
ConstructorsConstructorDescriptionElementCreatorFeed(Expression exp, ItemFeed parentExpressionFeed, XPathContext context) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprocessLeft(XPathContext context) In streaming mode, process the first half of the instruction (for example, to start a new document or element)protected voidprocessRight(XPathContext context) In streaming mode, process the right half of the instruction (for example, to end a new document or element)toString()Methods inherited from class com.saxonica.ee.stream.feed.ComplexNodeEventFeed
append, attribute, characters, close, comment, endDocument, endElement, endSelectedParentNode, namespace, open, processingInstruction, setComplexContentOutputter, startContent, startDocument, startElement, startElement, startSelectedParentNodeMethods inherited from class com.saxonica.ee.stream.feed.ItemFeed
append, dynamicError, getContext, getExpression, getResultFeed, getTerminator, hasFailed, processItems, setExpression, setHasFailed, setTerminatorMethods inherited from class net.sf.saxon.event.ProxyOutputter
getNextOutputter, open, setUnparsedEntity, usesTypeAnnotationsMethods inherited from class net.sf.saxon.event.Outputter
getConfiguration, getPipelineConfiguration, getStringReceiver, getSystemId, namespaces, setPipelineConfiguration, setSystemId, spreadStartElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sf.saxon.event.Receiver
handlesAppend
-
Constructor Details
-
ElementCreatorFeed
-
-
Method Details
-
processLeft
In streaming mode, process the first half of the instruction (for example, to start a new document or element)- Specified by:
processLeftin classComplexNodeEventFeed- Parameters:
context- The dynamic context- Throws:
XPathException- if a dynamic error occurs
-
processRight
In streaming mode, process the right half of the instruction (for example, to end a new document or element)- Specified by:
processRightin classComplexNodeEventFeed- Parameters:
context- The dynamic context- Throws:
XPathException- if a dynamic error occurs
-
toString
-