1 package org.scannotation.classpath;
4 import java.io.IOException;
8 * @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
9 * @version $Revision: 1 $
11 public class FileProtocolIteratorFactory implements DirectoryIteratorFactory
14 public StreamIterator create(URL url, Filter filter) throws IOException
16 File f = new File(url.getPath());
19 return new FileIterator(f, filter);
23 return new JarIterator(url.openStream(), filter);