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

- All Implemented Interfaces:
    `javax.xml.transform.Result`, `Receiver`

      public class ElementCreatorFeed
      extends ComplexNodeEventFeed

  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

      `next`

    - ### Fields inherited from class net.sf.saxon.event.Outputter

      `pipelineConfiguration, systemId`

    - ### Fields inherited from interface javax.xml.transform.Result

      `PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ElementCreatorFeed​(Expression exp, ItemFeed parentExpressionFeed, XPathContext context)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected void` | `processLeft​(XPathContext context)` | In streaming mode, process the first half of the instruction (for example, to start a new document or element)
    `protected void` | `processRight​(XPathContext context)` | In streaming mode, process the right half of the instruction (for example, to end a new document or element)
    `java.lang.String` | `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, startSelectedParentNode`

    - ### Methods inherited from class com.saxonica.ee.stream.feed.ItemFeed

      `append, dynamicError, getContext, getExpression, getResult, getTerminator, hasFailed, processItems, setExpression, setHasFailed, setTerminator`

    - ### Methods inherited from class net.sf.saxon.event.ProxyOutputter

      `getNextOutputter, open, setLocation, setUnparsedEntity, usesTypeAnnotations`

    - ### Methods inherited from class net.sf.saxon.event.Outputter

      `getConfiguration, getPipelineConfiguration, getStringReceiver, getSystemId, namespaces, setPipelineConfiguration, setSystemId`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface net.sf.saxon.event.Receiver

      `handlesAppend`

- - ### Constructor Detail

    - #### ElementCreatorFeed

          public ElementCreatorFeed​(Expression exp,
                                    ItemFeed parentExpressionFeed,
                                    XPathContext context)

  - ### Method Detail

    - #### processLeft

          protected void processLeft​(XPathContext context)
                              throws XPathException

      In streaming mode, process the first half of the instruction (for example, to start a new document or element)
      Specified by:
        `processLeft` in class `ComplexNodeEventFeed`
      Parameters:
        `context` - The dynamic context
      Throws:
        `XPathException` - if a dynamic error occurs

    - #### processRight

          protected void processRight​(XPathContext context)
                               throws XPathException

      In streaming mode, process the right half of the instruction (for example, to end a new document or element)
      Specified by:
        `processRight` in class `ComplexNodeEventFeed`
      Parameters:
        `context` - The dynamic context
      Throws:
        `XPathException` - if a dynamic error occurs

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`