public class ClassloaderResourceHelper extends Object
| 构造器和说明 |
|---|
ClassloaderResourceHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Iterable<FileEntry> |
fileEntriesFor(File[] files) |
private static boolean |
isChild(String parent,
String name) |
static Iterable<FileEntry> |
listFilesRelativeToClass(Class<?> clazz,
String subdirectory)
Lists all files and directories relative to the classpath entry (jar or folder)
containing clazz, directly under subdirectory.
|
public static Iterable<FileEntry> listFilesRelativeToClass(Class<?> clazz, String subdirectory) throws IOException
clazz - Any class within the classpath entry to be listed.subdirectory - Subdirectory to list. Must be an absolute path, relative to the top level of the classpath entry.IOExceptionCopyright © 2014. All rights reserved.