Class FileScanner

java.lang.Object
net.ME1312.SubServers.Host.Library.FileScanner
Direct Known Subclasses:
ReplacementScanner

public abstract class FileScanner extends Object
File Scanner Base Class
  • Constructor Details

    • FileScanner

      public FileScanner()
  • Method Details

    • scan

      protected void scan(File dir, String... whitelist) throws IOException
      Scan a Directory
      Parameters:
      dir - Directory
      whitelist - File Whitelist
      Throws:
      IOException
    • act

      protected abstract void act(File dir, String name) throws IOException
      Perform an action on an included file
      Parameters:
      dir - Parent Directory
      name - File Name
      Throws:
      IOException