Package net.sf.saxon.s9api.streams
package net.sf.saxon.s9api.streams
This package provides methods to manipulate XDM values using Java 8 streams. It provides an alternative to XPath navigation of XDM trees, avoiding the high parsing cost and poor compile-time diagnostics of XPath expressions, while being a much higher-level interface than DOM-style navigation from node to node.
-
ClassDescriptionThis non-instantiable class provides a number of useful implementations of the
Predicateinterface, designed for use when navigating streams of XDM items.AStepis a function that can be applied to an item to return a stream of items.This non-instantiable class provides a number of useful implementations of theStepinterface, used to navigate XDM trees, typically as an argument toXdmValue.select(net.sf.saxon.s9api.streams.Step<T>).This class contains a number of static methods that deliver implementations of theCollectorinterface suitable for use with streams processing XDM nodes and other items.Unchecked exception that occurs when a collector method such asXdmCollectors.asAtomic()orXdmCollectors.asOptionalNode()is called, and the sequence contains more than one item.XdmStreamextends the capabilities of the standard JDKStreamclass.