Uses of Interface
org.miaixz.bus.core.io.resource.Resource
Packages that use Resource
Package
Description
压缩解压封装
对文件读写的封装,包括文件拷贝、文件读取、文件写出、行处理等
针对ClassPath和文件中资源读取的封装
加载器的抽象接口和实现,包括懒加载的实现等
类加载相关封装和工具
提供各种工具封装
xyz:做好一切必要准备,可以行动了
-
Uses of Resource in org.miaixz.bus.core.io.compress
Methods in org.miaixz.bus.core.io.compress with parameters of type ResourceModifier and TypeMethodDescription添加资源到压缩包,添加后关闭资源流ZipReplacer.addReplace(String entryPath, Resource resource) 增加替换的内容,如果路径不匹配,则不做替换,也不加入 -
Uses of Resource in org.miaixz.bus.core.io.file
Methods in org.miaixz.bus.core.io.file with parameters of type ResourceModifier and TypeMethodDescriptionstatic PathPathResolve.copy(Resource src, Path target, CopyOption... options) 拷贝资源到目标文件 如果src为FileResource,调用文件拷贝。 其它,调用JDK7+的Files.copy(InputStream, Path, CopyOption...)。 -
Uses of Resource in org.miaixz.bus.core.io.resource
Classes in org.miaixz.bus.core.io.resource that implement ResourceModifier and TypeClassDescriptionclass基于byte[]的资源获取器 注意:此对象中getUrl方法始终返回nullclassCharSequence资源,字符串做为资源classClassPath单一资源访问类 传入路径path必须为相对路径,如果传入绝对路径,Linux路径会去掉开头的“/”,而Windows路径会直接报错。 传入的path所指向的资源必须存在,否则报错classFileObject资源包装classclassHTTP资源,用于自定义表单数据,可自定义Content-Typeclass基于InputStream的资源获取器 注意:此对象中getUrl方法始终返回nullclassJar包资源对象class多文件组合资源 此资源为一个利用游标自循环资源,只有调用MultiResource.next()方法才会获取下一个资源,使用完毕后调用MultiResource.reset()方法重置游标class多资源组合资源 此资源为一个利用游标自循环资源,只有调用MultiResource.next()方法才会获取下一个资源,使用完毕后调用MultiResource.reset()方法重置游标class字符串资源,字符串做为资源classURL资源访问类classVFS资源封装 支持VFS 3.x on JBoss AS 6+,JBoss AS 7 and WildFly 8+ 参考:org.springframework.core.io.VfsUtilsclassWeb root资源访问对象Methods in org.miaixz.bus.core.io.resource that return ResourceMethods in org.miaixz.bus.core.io.resource that return types with arguments of type ResourceMethods in org.miaixz.bus.core.io.resource with parameters of type ResourceModifier and TypeMethodDescription增加资源Method parameters in org.miaixz.bus.core.io.resource with type arguments of type ResourceModifier and TypeMethodDescription增加多个资源Constructors in org.miaixz.bus.core.io.resource with parameters of type ResourceModifierConstructorDescriptionHttpResource(Resource resource, String contentType) 构造MultiResource(Resource... resources) 构造Constructor parameters in org.miaixz.bus.core.io.resource with type arguments of type Resource -
Uses of Resource in org.miaixz.bus.core.lang.loader
Fields in org.miaixz.bus.core.lang.loader declared as ResourceMethods in org.miaixz.bus.core.lang.loader that return ResourceMethods in org.miaixz.bus.core.lang.loader that return types with arguments of type ResourceModifier and TypeMethodDescription加载指定路径的所有资源,等效于Loader.load(path, false, Filters.ALWAYS)的调用 通常情况下不递归加载,但是子类可以改变此方法的行为, 例如ANT风格路径的资源加载器可以根据传入表达式来判断是否递归加载加载指定路径的所有资源,等效于Loader.load(path, recursively, Filters.ALWAYS)的调用加载指定路径的所有满足过滤条件的资源default Enumeration<Resource> 加载动态库信息 例如: .dll/.so等加载指定路径的所有满足过滤条件的资源,等效于Loader.load(path, true, boot)的调用加载匹配模式表达式的所有资源,由于模式表达式中有可能表达了是否递归加载的含义, 所以缺省情况下recursively参数会被忽略,取而代之的是PatternLoader.recursively(String)的返回值, 如果字类实现的模式表达式并不能表达是否递归加载的含义,需要重写该方法以满足更多定制化的需求 另外当filter参数不为null时,由模式表达式推导出的过滤器将会和filter参数混合成一个AllFilter混合过滤器 -
Uses of Resource in org.miaixz.bus.core.lang.loader.classloader
Classes in org.miaixz.bus.core.lang.loader.classloader with type parameters of type ResourceModifier and TypeClassDescriptionclassResourceClassLoader<T extends Resource>资源类加载器,可以加载任意类型的资源类 -
Uses of Resource in org.miaixz.bus.core.xyz
Methods in org.miaixz.bus.core.xyz that return ResourceModifier and TypeMethodDescriptionstatic ResourceResourceKit.getResource(File file) 获取FileResource资源对象static ResourceResourceKit.getResource(String path) static ResourceResourceKit.getResource(URL url) 获取UrlResource资源对象Methods in org.miaixz.bus.core.xyz with parameters of type ResourceModifier and TypeMethodDescriptionstatic File拷贝资源到目标文件 如果src为FileResource,调用文件拷贝。 其它,调用JDK7+的Files.copy(InputStream, Path, CopyOption...)。static voidResourceKit.loadTo(Properties properties, Resource resource, Charset charset) 加载配置文件内容到Properties中 需要注意的是,如果资源文件的扩展名是.xml,会调用Properties.loadFromXML(InputStream)读取。static File对流中的数据加入到压缩文件 路径列表和流列表长度必须一致