Package wt.util
Class ResourceLister
java.lang.Object
wt.util.ResourceLister
A utility to list resource files found in the local class path.
It only list files found in directories, not .zip or .jar files.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]list()List all resource files appearing in root directories in the class path.static String[]list(FilenameFilter filter) List all resource files that appear in root directories in the class path and are accepted by a givenFilenameFilter.static String[]List all resource files with a given path relative to root directories in the class path.static String[]list(String path, FilenameFilter filter) List resource files with a given path relative to root directories in the class path and are accepted by a givenFilenameFilter.static void
Supported API: true
-
Method Details
-
list
List all resource files appearing in root directories in the class path.
Supported API: true- Returns:
- array of resource names
-
list
List all resource files that appear in root directories in the class path and are accepted by a givenFilenameFilter.
Supported API: true- Parameters:
filter- aFilenameFilterto filter listed names- Returns:
- array of resource names
-
list
List all resource files with a given path relative to root directories in the class path.
Supported API: true- Parameters:
path- resource name path (forward slash separated)- Returns:
- array of resource names
-
list
List resource files with a given path relative to root directories in the class path and are accepted by a givenFilenameFilter.
Supported API: true- Parameters:
path- resource name path (forward slash separated)filter- aFilenameFilterto filter listed names- Returns:
- array of resource names
-
main
Supported API: true
-