Class SequenceCopier


  • public class SequenceCopier
    extends Object
    Copies a sequence, supplied as a SequenceIterator, to a push pipeline, represented by a SequenceReceiver
    • Method Detail

      • copySequence

        public static void copySequence​(SequenceIterator in,
                                        Receiver out)
                                 throws XPathException
        Copy a sequence, supplied as a SequenceIterator, to a push pipeline, represented by a SequenceReceiver
        Parameters:
        in - an iterator over the input sequence
        out - a Receiver to receive the output sequence. The method will open this receiver at the start and close it on completion.
        Throws:
        XPathException - if a failure occurs reading the input or writing the output