public class JarResourceLoader extends AbstractResourceLoader
ResourceLoader.InputStreamGet, ResourceLoader.MatchType, ResourceLoader.ScanEvent, ResourceLoader.Scanner<T>parentClassLoader| 构造器和说明 |
|---|
JarResourceLoader(ClassLoader parent,
File file) |
JarResourceLoader(ClassLoader parent,
File file,
List<String> nestedList) |
JarResourceLoader(File file) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
exist(String resource) |
Manifest |
getManifest() |
Manifest |
getManifest(String nestedJarName) |
URL |
getResource(String resource) |
InputStream |
getResourceAsStream(String resource) |
List<URL> |
getResources(String resource) |
List<InputStream> |
getResourcesAsStream(String resource) |
<T> T |
scanOneResource(ResourceLoader.MatchType matchType,
ResourceLoader.Scanner<T> scanner,
String[] scanPaths) |
<T> List<T> |
scanResources(ResourceLoader.MatchType matchType,
ResourceLoader.Scanner<T> scanner,
String[] scanPaths) |
protected boolean |
testFound(JarEntry entry,
Predicate<JarEntry>[] testPredicates) |
buildPredicate, getClass, loaderForClassLoaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitscanOneResource, scanOneResource, scanResources, scanResourcespublic JarResourceLoader(File file) throws IOException
IOExceptionpublic JarResourceLoader(ClassLoader parent, File file) throws IOException
IOExceptionpublic JarResourceLoader(ClassLoader parent, File file, List<String> nestedList) throws IOException
IOExceptionpublic Manifest getManifest() throws IOException
IOExceptionpublic Manifest getManifest(String nestedJarName) throws IOException
IOExceptionpublic URL getResource(String resource) throws IOException
IOExceptionpublic InputStream getResourceAsStream(String resource) throws IOException
IOExceptionpublic List<URL> getResources(String resource) throws IOException
IOExceptionpublic List<InputStream> getResourcesAsStream(String resource) throws IOException
IOExceptionpublic boolean exist(String resource)
public <T> List<T> scanResources(ResourceLoader.MatchType matchType, ResourceLoader.Scanner<T> scanner, String[] scanPaths) throws IOException
IOExceptionpublic <T> T scanOneResource(ResourceLoader.MatchType matchType, ResourceLoader.Scanner<T> scanner, String[] scanPaths) throws IOException
IOExceptionCopyright © 2022. All rights reserved.