Class PathResourceFinder
java.lang.Object
org.codehaus.commons.compiler.util.resource.ResourceFinder
org.codehaus.commons.compiler.util.resource.ListableResourceFinder
org.codehaus.commons.compiler.util.resource.MultiResourceFinder
org.codehaus.commons.compiler.util.resource.LazyMultiResourceFinder
org.codehaus.commons.compiler.util.resource.PathResourceFinder
A
ResourceFinder
that finds its resources along a "path"
consisting of JAR file names, ZIP file names, and directory names.- See Also:
-
Field Summary
Fields inherited from class org.codehaus.commons.compiler.util.resource.ResourceFinder
EMPTY_RESOURCE_FINDER
-
Constructor Summary
ConstructorsConstructorDescriptionPathResourceFinder
(File[] entries) PathResourceFinder
(String path) PathResourceFinder
(Iterator<ResourceFinder> entries) -
Method Summary
Modifier and TypeMethodDescriptionprivate static Iterator<ResourceFinder>
createIterator
(Iterator<File> entries) private static ResourceFinder
createResourceFinder
(File entry) A factory method that creates a Java classpath-style ResourceFinder as follows:entry
ReturnedResourceFinder
"*.jar" fileZipFileResourceFinder
"*.zip" fileZipFileResourceFinder
directoryDirectoryResourceFinder
any otherAResourceFinder
that never finds a resourceMethods inherited from class org.codehaus.commons.compiler.util.resource.MultiResourceFinder
findResource, list
Methods inherited from class org.codehaus.commons.compiler.util.resource.ResourceFinder
findResourceAsStream
-
Constructor Details
-
PathResourceFinder
- Parameters:
entries
- The entries of the "path"
-
PathResourceFinder
- Parameters:
entries
- The entries of the "path"
-
PathResourceFinder
- Parameters:
path
- A java-like path, i.e. a "path separator"-separated list of entries
-
-
Method Details
-
createIterator
-
createResourceFinder
A factory method that creates a Java classpath-style ResourceFinder as follows:entry
Returned ResourceFinder
"*.jar" file ZipFileResourceFinder
"*.zip" file ZipFileResourceFinder
directory DirectoryResourceFinder
any other A ResourceFinder
that never finds a resource- Returns:
- a valid
ResourceFinder
-