cucumber.io
Interface ResourceIteratorFactory

All Known Implementing Classes:
DelegatingResourceIteratorFactory, FileResourceIteratorFactory, ZipResourceIteratorFactory, ZipThenFileResourceIteratorFallback

public interface ResourceIteratorFactory

Factory contract for creating resource iterators.


Method Summary
 Iterator<Resource> createIterator(URL url, String path, String suffix)
          Creates an iterator for the given URL with the path and suffix.
 boolean isFactoryFor(URL url)
          Gets a value indicating whether the factory can create iterators for the resource specified by the given URL.
 

Method Detail

isFactoryFor

boolean isFactoryFor(URL url)
Gets a value indicating whether the factory can create iterators for the resource specified by the given URL.

Parameters:
url - The URL to check.
Returns:
True if the factory can create an iterator for the given URL.

createIterator

Iterator<Resource> createIterator(URL url,
                                  String path,
                                  String suffix)
Creates an iterator for the given URL with the path and suffix.

Parameters:
url - The URL.
path - The path.
suffix - The suffix.
Returns:
The iterator over the resources designated by the URL, path, and suffix.


Copyright © 2012. All Rights Reserved.