protected class SourceHabitats.SourceHabitat_resource extends SourceHabitats.SourceHabitat
a.b.c or a.b.c/d/e.
All resources searched for must be files existing relative to the point where the
class has been loded from (e.g. file system, or a ".jar" file)
by getResourceAsStream(String) or sim.| Modifier and Type | Field and Description |
|---|---|
protected Class |
cls |
protected String |
reldir |
name, ok| Constructor and Description |
|---|
SourceHabitat_resource(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected @Opt SourceHabitats.FoundSource |
test_idExt(String id,
boolean verb,
String ext)
Finds the resource with the given name.
|
test_for_inputStreampublic SourceHabitat_resource(String name)
@Opt protected @Opt SourceHabitats.FoundSource test_idExt(String id, boolean verb, String ext)
SourceHabitats.SourceHabitattest_idExt in class SourceHabitats.SourceHabitatid - name of the resource (mostly the file name "stem")ext - extension of the resource name / file name. The leading dot (=".") must be
included.see also the complete user documentation .