public class VFS extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
URL |
findJarForResource(URL url) |
static VFS |
getInstance() |
static List<URL> |
getResources(String path)
get Resources by path
|
boolean |
isJar(URL url) |
List<String> |
list(String path)
list resources
|
List<String> |
list(URL url,
String path) |
protected List<String> |
listResources(JarInputStream jarInputStream,
String path) |
public static VFS getInstance()
public static List<URL> getResources(String path) throws IOException
path - 扫描路径IOException - 文件异常public List<String> list(URL url, String path) throws IOException
IOExceptionprotected List<String> listResources(JarInputStream jarInputStream, String path) throws IOException
IOExceptionpublic boolean isJar(URL url)
public List<String> list(String path) throws IOException
path - 扫描路径IOException - 文件异常Copyright © 2019. All rights reserved.