Class ProxyReceiverWithExpandedStreamResult

java.lang.Object
net.sf.saxon.event.SequenceReceiver
net.sf.saxon.event.ProxyReceiver
net.sf.saxon.event.ProxyReceiverWithExpandedStreamResult
All Implemented Interfaces:
Result, Receiver

public class ProxyReceiverWithExpandedStreamResult extends ProxyReceiver
A ProxyReceiver that passes all events through unchanged, but which holds information about the final destination of a serialization pipeline.
  • Field Details

  • Constructor Details

    • ProxyReceiverWithExpandedStreamResult

      public ProxyReceiverWithExpandedStreamResult(Receiver nextReceiver, ExpandedStreamResult expandedResult)
      Create a ProxyReceiverWithExpandedStreamResult that passes everything unchanged to the next receiver, but captures information about the final result destination
      Parameters:
      nextReceiver - the next receiver in the serialization pipeline
      expandedResult - the final destination of the pipeline
  • Method Details

    • eliminate

      public static Receiver eliminate(Receiver receiver)
      Drop an unnecessary ProxyReceiverWithExpandedStreamResult from the pipeline
      Parameters:
      receiver - a receiver
      Returns:
      the supplied receiver unless it is a ProxyReceiverWithExpandedStreamResult, in which case the next receiver in the pipeline