public final class VFS extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addSchemaProvider(SchemaProvider schemaProvider)
添加新的模式提供者
|
static void |
clearCache()
清空Cache
|
static void |
closeInputStream(InputStream inputStream)
fileObject输入流关闭的工具方法
|
static void |
closeOutputStream(OutputStream outputStream)
fileObject输出流关闭的工具方法
|
static SchemaProvider |
getSchemaProvider(String schema)
返回指定的模式提供者
|
static FileObject |
resolveFile(String resourceResolve)
解析文件,
如果是在压缩包类型的文件内,则判断是否存在,如果存在,判断修改时间
如果不是包内文件,则直接读取
|
static FileObject |
resolveURL(URL url)
解析URL
|
static void |
setDefaultSchemaProvider(String schema)
设置默认模式提供者
|
public static void clearCache()
public static void addSchemaProvider(SchemaProvider schemaProvider)
schemaProvider
- public static void setDefaultSchemaProvider(String schema)
schema
- public static SchemaProvider getSchemaProvider(String schema)
schema
- public static FileObject resolveFile(String resourceResolve)
resourceResolve
- public static FileObject resolveURL(URL url)
url
- public static void closeInputStream(InputStream inputStream)
fileObject
- public static void closeOutputStream(OutputStream outputStream)
fileObject
- Copyright © 2006–2018 TinyGroup. All rights reserved.