Notice that there is a symmetrical concept org.
that creates resources for writing.
findResource(String), findResourceAsStream(String), org.codehaus.commons.compiler.util.resource.ResourceCreator
| Modifier and Type | Field and Description |
|---|---|
| public static final ListableResourceFinder | EMPTY_RESOURCE_FINDER
This one's useful when a resource finder is required, but cannot be created for some reason. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Resource | Returns: null if the resource could not be foundDesignates the resource; typically structured by slashes ("/") like
" resourceName)com/foo/pkg/Bar.class"Finds a resource by name and return it as a |
| public final InputStream | Returns: null if the resource could not be foundDesignates the resource; typically structured by slashes ("/") like
" resourceName)com/foo/pkg/Bar.class"Finds a resource by name and open it for reading. |
| EMPTY_RESOURCE_FINDER | back to summary |
|---|---|
| public static final ListableResourceFinder EMPTY_RESOURCE_FINDER This one's useful when a resource finder is required, but cannot be created for some reason. | |
| ResourceFinder | back to summary |
|---|---|
| public ResourceFinder() | |
| findResource | back to summary |
|---|---|
| public abstract Resource findResource(String resourceName) Finds a resource by name and return it as a | |
| findResourceAsStream | back to summary |
|---|---|
| public final InputStream findResourceAsStream(String resourceName) throws IOException Finds a resource by name and open it for reading.
| |