Enum Class SearchOrder
- All Implemented Interfaces:
Serializable, Comparable<SearchOrder>, Constable
Defines where to look for a library.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLook in classpath, this includes directory and the jar(s)Look in any given external pathLook in system path (e.g. -
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamfindFile(String _fileName, SearchOrder... _order) Search for the given filename in givenSearchOrder.static SearchOrderReturns the enum constant of this class with the specified name.static SearchOrder[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CUSTOM_PATH
Look in any given external path -
CLASS_PATH
Look in classpath, this includes directory and the jar(s) -
SYSTEM_PATH
Look in system path (e.g. /usr/lib on linux/unix systems)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
findFile
Search for the given filename in givenSearchOrder.- Parameters:
_fileName- filename_order- order- Returns:
- InputStream of first found matching file or null if no file found
-