|
Web Site | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.janino.util.resource.ResourceFinder
Finds a resource by name.
Notice that there is a symmetrical concept
ResourceCreator that creates resources for
writing.
ResourceCreator| Field Summary | |
static ResourceFinder |
EMPTY_RESOURCE_FINDER
This one's useful when a resource finder is required, but cannot be created for some reason. |
| Constructor Summary | |
ResourceFinder()
|
|
| Method Summary | |
abstract Resource |
findResource(java.lang.String resourceName)
Find a resource by name and return it as a Resource object. |
java.io.InputStream |
findResourceAsStream(java.lang.String resourceName)
Find a resource by name and open it for reading. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final ResourceFinder EMPTY_RESOURCE_FINDER
| Constructor Detail |
public ResourceFinder()
| Method Detail |
public final java.io.InputStream findResourceAsStream(java.lang.String resourceName)
throws java.io.IOException
resourceName - Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class"
null if the resource could not be found
IOException - The resource was found, but there are problems opening itpublic abstract Resource findResource(java.lang.String resourceName)
Resource object.
resourceName - Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class"
null if the resource could not be found
|
Web Site | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||