Package com.saxonica.ee.stream.adjunct
Class TryCatchAdjunct.TryCatchFeed
- java.lang.Object
-
- net.sf.saxon.event.Outputter
-
- net.sf.saxon.event.ProxyOutputter
-
- com.saxonica.ee.stream.feed.ItemFeed
-
- com.saxonica.ee.stream.adjunct.TryCatchAdjunct.TryCatchFeed
-
- All Implemented Interfaces:
javax.xml.transform.Result
,Receiver
- Enclosing class:
- TryCatchAdjunct
public static class TryCatchAdjunct.TryCatchFeed extends ItemFeed
-
-
Field Summary
-
Fields inherited from class net.sf.saxon.event.Outputter
pipelineConfiguration, systemId
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(Item item)
Supply one item towards the streamed input of the expressionvoid
close()
Finish evaluating the expression.void
dynamicError(XPathException err)
Report a dynamic error.void
open(Terminator terminator)
Start evaluating the expression.-
Methods inherited from class com.saxonica.ee.stream.feed.ItemFeed
append, endSelectedParentNode, getContext, getExpression, getResult, 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, setLocation, setUnparsedEntity, startContent, startDocument, startElement, startElement, 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, toString, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.event.Receiver
handlesAppend
-
-
-
-
Method Detail
-
open
public void open(Terminator terminator) throws XPathException
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
public void append(Item item) throws XPathException
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
-
close
public void close() throws XPathException
Finish evaluating the expression.- Specified by:
close
in interfaceReceiver
- Overrides:
close
in classItemFeed
- Throws:
XPathException
- if a dynamic error occurs
-
dynamicError
public void dynamicError(XPathException err) throws XPathException
Description copied from class:ItemFeed
Report a dynamic error. This requires searching up the "feed" pipeline to see if there is a try/catch expression interested in being notified of this error; if there is none, the error is thrown as an exception- Overrides:
dynamicError
in classItemFeed
- Parameters:
err
- the exception representing the dynamic error- Throws:
XPathException
- if there is no try/catch expression wanting to catch this error
-
-