|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceFinder
This interface describes a class which is able to find files or other resources of different kinds for reading. It is not determined how the search is performed. Searching for the given file name, augmenting extension and path, or using an external library – like kpathsea – are left to possible implementations. Even an interaction with the user can be envisioned.
| Method Summary | |
|---|---|
void |
enableTracing(boolean flag)
Enable or disable the tracing. |
NamedInputStream |
findResource(java.lang.String name,
java.lang.String type)
Find a resource which can be used for reading. |
| Method Detail |
|---|
void enableTracing(boolean flag)
flag - indicator whether tracing should be turned on or off.
NamedInputStream findResource(java.lang.String name,
java.lang.String type)
throws ConfigurationException
null is returned.
name - the base name of the resourcetype - the type, i.e. the extension
null if none could be found
ConfigurationException - in case of an exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||