类 VFS
- java.lang.Object
-
- com.github.xiaoymin.knife4j.core.io.VFS
-
public class VFS extends Object
- 作者:
- xiaoymin@foxmail.com 2019/04/30 14:16
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 URLfindJarForResource(URL url)static VFSgetInstance()static List<URL>getResources(String path)get Resources by pathbooleanisJar(URL url)List<String>list(String path)list resourcesList<String>list(URL url, String path)protected List<String>listResources(JarInputStream jarInputStream, String path)
-
-
-
方法详细资料
-
getInstance
public static VFS getInstance()
-
getResources
public static List<URL> getResources(String path) throws IOException
get Resources by path- 参数:
path- 扫描路径- 返回:
- 扫描集合URL
- 抛出:
IOException- 文件异常
-
list
public List<String> list(URL url, String path) throws IOException
- 抛出:
IOException
-
listResources
protected List<String> listResources(JarInputStream jarInputStream, String path) throws IOException
- 抛出:
IOException
-
isJar
public boolean isJar(URL url)
-
list
public List<String> list(String path) throws IOException
list resources- 参数:
path- 扫描路径- 返回:
- 扫描类集合
- 抛出:
IOException- 文件异常
-
-