Class FileResourceFinder
- java.lang.Object
-
- org.codehaus.commons.compiler.util.resource.ResourceFinder
-
- org.codehaus.commons.compiler.util.resource.ListableResourceFinder
-
- org.codehaus.commons.compiler.util.resource.FileResourceFinder
-
- Direct Known Subclasses:
DirectoryResourceFinder
public abstract class FileResourceFinder extends ListableResourceFinder
This class specializes theResourceFinder
for finding resources inFile
s.It finds
FileResource
s instead of simpleResource
s.
-
-
Field Summary
-
Fields inherited from class org.codehaus.commons.compiler.util.resource.ResourceFinder
EMPTY_RESOURCE_FINDER
-
-
Constructor Summary
Constructors Constructor Description FileResourceFinder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Resource
findResource(java.lang.String resourceName)
Finds a resource by name and return it as aResource
object.protected abstract java.io.File
findResourceAsFile(java.lang.String resourceName)
Converts a given resource resource name into aFile
.-
Methods inherited from class org.codehaus.commons.compiler.util.resource.ListableResourceFinder
list
-
Methods inherited from class org.codehaus.commons.compiler.util.resource.ResourceFinder
findResourceAsStream
-
-
-
-
Method Detail
-
findResource
@Nullable public final Resource findResource(java.lang.String resourceName)
Description copied from class:ResourceFinder
Finds a resource by name and return it as aResource
object.- Specified by:
findResource
in classResourceFinder
- Parameters:
resourceName
- Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class
"- Returns:
null
if the resource could not be found
-
findResourceAsFile
@Nullable protected abstract java.io.File findResourceAsFile(java.lang.String resourceName)
Converts a given resource resource name into aFile
.
-
-