public class ResourceLoader
extends java.lang.Object
Constructor and Description |
---|
ResourceLoader() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
getFileNames(java.lang.String directory,
boolean noFileEnding,
boolean isInJar)
Returns an array containing the names of all files in a specified directory within the resource directory.
|
static java.io.File[] |
getResourceFolderFiles(java.lang.String directory)
Returns a File[] containing the full names of all files in the specified directory.
|
public static java.io.File[] getResourceFolderFiles(java.lang.String directory)
directory
- any directory within the resource directory without a leading or ending '/' (slash).public static java.lang.String[] getFileNames(java.lang.String directory, boolean noFileEnding, boolean isInJar)
directory
- any directory within the resource directory (without leading or trailing '/' [slash]).noFileEnding
- true if the file ending (including the '.' [dot]) shall be cut. Else false.isInJar
- whether the resources are in a jar.