public abstract class SourceHabitats.SourceHabitat extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
name
Must be encoded with the prefix rules, as described in the class doc text.
|
protected boolean |
ok
Set once on initialization to indicate that this Habitat is usable for searching.
|
Modifier | Constructor and Description |
---|---|
protected |
SourceHabitat(String name) |
Modifier and Type | Method and Description |
---|---|
protected @Opt SourceHabitats.FoundSource |
test_for_inputStream(String id,
boolean verbose,
String[] suffices)
Deliver an input source or null, if no resource found.
|
protected abstract @Opt SourceHabitats.FoundSource |
test_idExt(String id,
boolean verbose,
String ext)
Finds the resource with the given name.
|
protected String name
protected boolean ok
protected SourceHabitat(String name)
@Opt protected abstract @Opt SourceHabitats.FoundSource test_idExt(String id, boolean verbose, String ext)
id
- name of the resource (mostly the file name "stem")ext
- extension of the resource name / file name. The leading dot (=".") must be
included.@Opt protected @Opt SourceHabitats.FoundSource test_for_inputStream(String id, boolean verbose, String[] suffices)
SourceHabitats.FoundSource
object.
This implementation works for all kinds of habitats by calling
test_idExt(String,boolean,String)
.see also the complete user documentation .