All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cat.inspiracio.util.IterableNodeList Maven / Gradle / Ivy

package cat.inspiracio.util;

import java.util.Iterator;

import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

public class IterableNodeList implements NodeList, Iterable{

	private NodeList nodes;
	
	public IterableNodeList(NodeList ns){nodes=ns;}
	
	@Override public Iterator iterator(){
		return new Iterator(){
			final int length=nodes.getLength();
			int index=0;
			@Override public boolean hasNext(){return index




© 2015 - 2025 Weber Informatics LLC | Privacy Policy