public class ResourceLoader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ResourceLoader.ResourceCandidate |
Constructor and Description |
---|
ResourceLoader() |
Modifier and Type | Method and Description |
---|---|
static java.io.File |
extractOrGetResourceFile(java.lang.String sourceJarFile,
java.lang.String candidateJarEntry,
java.lang.String toDir)
Extract JarEntry as file to target directory and return it as File, or return the sourceJarFile when it's not an archive.
|
static java.util.Set |
searchDirectory(java.lang.String resourceDirectory,
java.lang.String extension,
long afterTime)
Search qualified plain resources or resources inside archive files under given directory which lastUpdatedTime after given time
|
public static java.util.Set searchDirectory(java.lang.String resourceDirectory, java.lang.String extension, long afterTime)
resourceDirectory:
- the directory from there the search would start perform.extension:
- the satisfied file extension meaning the qualified resource need end up with itafterTime:
- the time point which all qualified resources should later than itpublic static java.io.File extractOrGetResourceFile(java.lang.String sourceJarFile, java.lang.String candidateJarEntry, java.lang.String toDir)
sourceJarFile
- candidateJarEntry
- toDir
-