Class FileScriptLoader


  • public final class FileScriptLoader
    extends Object
    Loads text content of static file - or the output of dynamic scripts. Currently only python scripts are supported. Python needs to be installed on the machine.
    • Method Detail

      • readFileToString

        public static String readFileToString​(File file)
                                       throws IOException
        Read content of a file to string. If the file is a (supported) executable script, execute it and return the result.
        Parameters:
        file - File
        Returns:
        File content or script result
        Throws:
        IOException - I/O error