1 package net.sf.saxon.pull; 2 3 import net.sf.saxon.trans.XPathException; 4 5 11 12 public class PullConsumer { 13 14 private PullProvider in; 15 16 public PullConsumer(PullProvider in) { 17 this.in = in; 18 } 19 20 24 25 public void consume() throws XPathException { 26 while (true) { 27 if (in.next() == PullProvider.END_OF_INPUT) { 28 return; 29 } 30 } 31 } 32 } 33 34 | Popular Tags |