Package com.saxonica.ee.stream.feed
Class SinkFeed
java.lang.Object
net.sf.saxon.event.Outputter
net.sf.saxon.event.ProxyOutputter
com.saxonica.ee.stream.feed.ItemFeed
com.saxonica.ee.stream.feed.SinkFeed
An ItemFeed that swallows (discards) all input passed to it
-
Field Summary
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
Supply one item towards the streamed input of the expressionboolean
Ask whether this Receiver can handle arbitrary items in itsReceiver.append(net.sf.saxon.om.Item, net.sf.saxon.s9api.Location, int)
andReceiver.append(Item, Location, int)
methods.void
open
(Terminator terminator) Start evaluating the expression.Methods inherited from class com.saxonica.ee.stream.feed.ItemFeed
append, close, dynamicError, endSelectedParentNode, getContext, getExpression, getResultFeed, getTerminator, hasFailed, processItems, setExpression, setHasFailed, setTerminator, startSelectedParentNode
Methods inherited from class net.sf.saxon.event.ProxyOutputter
attribute, characters, comment, endDocument, endElement, getNextOutputter, namespace, open, processingInstruction, setUnparsedEntity, startContent, startDocument, startElement, startElement, usesTypeAnnotations
Methods inherited from class net.sf.saxon.event.Outputter
getConfiguration, getPipelineConfiguration, getStringReceiver, getSystemId, namespaces, setPipelineConfiguration, setSystemId, spreadStartElement
-
Constructor Details
-
SinkFeed
-
-
Method Details
-
open
Description copied from class:ItemFeed
Start evaluating the expression. The default implementation does nothing.- Overrides:
open
in classItemFeed
- Parameters:
terminator
- used to achieve early exit- Throws:
XPathException
- if a dynamic error occurs
-
append
Description copied from class:ItemFeed
Supply one item towards the streamed input of the expression- Specified by:
append
in interfaceReceiver
- Specified by:
append
in classItemFeed
- Parameters:
item
- the item to be supplied- Throws:
XPathException
- if the operation fails
-
handlesAppend
public boolean handlesAppend()Description copied from interface:Receiver
Ask whether this Receiver can handle arbitrary items in itsReceiver.append(net.sf.saxon.om.Item, net.sf.saxon.s9api.Location, int)
andReceiver.append(Item, Location, int)
methods. If it cannot, then calling these methods will raise an exception (typically but not necessarily anUnsupportedOperationException
). The default implementation of this method returns false.- Returns:
- true if the Receiver is able to handle items supplied to
its
Receiver.append(net.sf.saxon.om.Item, net.sf.saxon.s9api.Location, int)
andReceiver.append(Item, Location, int)
methods. A receiver that returns true may still reject some kinds of item, for example it may reject function items.
-