Class ListableResourceFinder
- java.lang.Object
-
- org.codehaus.commons.compiler.util.resource.ResourceFinder
-
- org.codehaus.commons.compiler.util.resource.ListableResourceFinder
-
- Direct Known Subclasses:
FileResourceFinder,MapResourceFinder,MultiResourceFinder
public abstract class ListableResourceFinder extends ResourceFinder
Extends theResourceFinderclass with alist(String, boolean)method.
-
-
Field Summary
-
Fields inherited from class org.codehaus.commons.compiler.util.resource.ResourceFinder
EMPTY_RESOURCE_FINDER
-
-
Constructor Summary
Constructors Constructor Description ListableResourceFinder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.Iterable<Resource>list(java.lang.String resourceNamePrefix, boolean recurse)-
Methods inherited from class org.codehaus.commons.compiler.util.resource.ResourceFinder
findResource, findResourceAsStream
-
-
-
-
Method Detail
-
list
@Nullable public abstract java.lang.Iterable<Resource> list(java.lang.String resourceNamePrefix, boolean recurse) throws java.io.IOException
- Parameters:
resourceNamePrefix- E.g.""or"java/lang"- Returns:
- All resources who's name starts with the given prefix;
nulliff a location designated by the resourceNamePrefix does not exist - Throws:
java.io.IOException
-
-