Class ReplacementScanner

java.lang.Object
net.ME1312.SubServers.Bungee.Library.FileScanner
net.ME1312.SubServers.Bungee.Library.ReplacementScanner

public class ReplacementScanner extends FileScanner
File Replacement Scanner
  • Constructor Details

    • ReplacementScanner

      public ReplacementScanner(Map<String,String> replacements)
  • Method Details

    • getReplacements

      public Map<String,String> getReplacements()
      Get the replacements
      Returns:
      Replacement Map
    • replace

      public void replace(File dir, String... whitelist) throws IOException
      Make replacements in a File or Directory
      Parameters:
      dir - File or Directory
      whitelist - File Whitelist
      Throws:
      IOException
    • act

      protected void act(File dir, String name) throws IOException
      Description copied from class: FileScanner
      Perform an action on an included file
      Specified by:
      act in class FileScanner
      Parameters:
      dir - Parent Directory
      name - File Name
      Throws:
      IOException
    • replace

      public Object replace(Object value)
      Make replacements in an Object
      Parameters:
      value - Map, Collection, Array, or String
      Returns:
      Object with replaced variables