Package eu.bandm.tools.util2
Class SourceHabitats.SourceHabitat_file
java.lang.Object
eu.bandm.tools.util2.SourceHabitats.SourceHabitat
eu.bandm.tools.util2.SourceHabitats.SourceHabitat_file
- Enclosing class:
- SourceHabitats
Represents a source habitat which is a directory in the file system.
All resources searched for must be files addressable from this directory.
-
Field Summary
FieldsFields inherited from class eu.bandm.tools.util2.SourceHabitats.SourceHabitat
name, ok -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Opt SourceHabitats.FoundSourcetest_idExt(String id, boolean verbose, String ext) Finds the resource with the given name.Methods inherited from class eu.bandm.tools.util2.SourceHabitats.SourceHabitat
test_for_inputStream
-
Field Details
-
pathAsFile
-
-
Constructor Details
-
SourceHabitat_file
- Parameters:
name- must be according to the prefix rules described with theSourceHabitatsclass doc.
-
-
Method Details
-
test_idExt
Description copied from class:SourceHabitats.SourceHabitatFinds the resource with the given name. This must be implemented differently for different kinds of Habitats.- Specified by:
test_idExtin classSourceHabitats.SourceHabitat- Parameters:
id- name of the resource (mostly the file name "stem")ext- extension of the resource name / file name. The leading dot (=".") must be included.- Returns:
- the found resource or null if no such exists.
-