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 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 ResourceFindercreateResourceFinder(File entry) A factory method that creates a Java classpath-style ResourceFinder as follows:entryReturnedResourceFinder"*.jar" fileZipFileResourceFinder"*.zip" fileZipFileResourceFinderdirectoryDirectoryResourceFinderany otherAResourceFinderthat never finds a resourceMethods inherited from class MultiResourceFinder
findResource, listMethods inherited from class 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:entryReturned ResourceFinder"*.jar" file ZipFileResourceFinder"*.zip" file ZipFileResourceFinderdirectory DirectoryResourceFinderany other A ResourceFinderthat never finds a resource- Returns:
- a valid
ResourceFinder
-