1 package net.sf.saxon.pull; 2 3 import net.sf.saxon.event.Receiver; 4 import net.sf.saxon.trans.XPathException; 5 6 10 public class PullPushCopier { 11 12 private PullProvider in; 13 private Receiver out; 14 15 public PullPushCopier(PullProvider in, Receiver out) { 16 this.out = out; 17 this.in = in; 18 } 19 20 24 25 public void copy() throws XPathException { 26 PullPushTee tee = new PullPushTee(in, out); 27 new PullConsumer(tee).consume(); 28 } 29 } 30 31 | Popular Tags |