cucumber.runtime.io.ResourceIteratorFactory Maven / Gradle / Ivy
package cucumber.runtime.io;
import java.net.URL;
import java.util.Iterator;
/**
* Factory contract for creating resource iterators.
*/
public interface ResourceIteratorFactory {
/**
* Gets a value indicating whether the factory can create iterators for the
* resource specified by the given URL.
*
* @param url The URL to check.
* @return True if the factory can create an iterator for the given URL.
*/
boolean isFactoryFor(URL url);
/**
* Creates an iterator for the given URL with the path and suffix.
*
* @param url The URL.
* @param path The path.
* @param suffix The suffix.
* @return The iterator over the resources designated by the URL, path, and
* suffix.
*/
Iterator createIterator(URL url, String path, String suffix);
}