1 6 package com.hp.hpl.jena.util.iterator; 7 import java.util.*; 8 9 15 public class EarlyBindingIterator extends WrappedIterator { 16 static private Iterator early(Iterator it) { 17 Vector v = new Vector(); 18 while (it.hasNext()) 19 v.add(it.next()); 20 close(it); 21 return v.iterator(); 22 } 23 public EarlyBindingIterator(Iterator it) { 24 super(early(it)); 25 } 26 27 } 28 29 | Popular Tags |