Class FileLoader

java.lang.Object
org.miaixz.bus.core.lang.loader.ResourceLoader
org.miaixz.bus.core.lang.loader.FileLoader
All Implemented Interfaces:
Loader

public class FileLoader extends ResourceLoader implements Loader
文件资源加载器
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

    • FileLoader

      public FileLoader(File root) throws IOException
      Throws:
      IOException
    • FileLoader

      public FileLoader(URL fileURL)
    • FileLoader

      public FileLoader(URL context, File root)
  • Method Details

    • load

      public Enumeration<Resource> load(String path, boolean recursively, Filter filter)
      Description copied from interface: Loader
      加载指定路径的所有满足过滤条件的资源
      Specified by:
      load in interface Loader
      Parameters:
      path - 资源路径
      recursively - 递归加载
      filter - 过滤器
      Returns:
      资源枚举器