Class ReplacementScanner
java.lang.Object
net.ME1312.SubServers.Host.Library.FileScanner
net.ME1312.SubServers.Host.Library.ReplacementScanner
File Replacement Scanner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Perform an action on an included fileGet the replacementsvoid
Make replacements in a File or DirectoryMake replacements in an ObjectMethods inherited from class net.ME1312.SubServers.Host.Library.FileScanner
scan
-
Constructor Details
-
ReplacementScanner
-
-
Method Details
-
getReplacements
Get the replacements- Returns:
- Replacement Map
-
replace
Make replacements in a File or Directory- Parameters:
dir
- File or Directorywhitelist
- File Whitelist- Throws:
IOException
-
act
Description copied from class:FileScanner
Perform an action on an included file- Specified by:
act
in classFileScanner
- Parameters:
dir
- Parent Directoryname
- File Name- Throws:
IOException
-
replace
Make replacements in an Object- Parameters:
value
- Map, Collection, Array, or String- Returns:
- Object with replaced variables
-