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

cucumber.runtime.io.ResourceIteratorFactory Maven / Gradle / Ivy

There is a newer version: 1.2.6
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy