Class Console


  • public class Console
    extends Object
    Author:
    burgetr
    • Constructor Detail

      • Console

        public Console()
    • Method Detail

      • prompt

        protected String prompt()
      • init

        protected void init()
        This is called when the console is created. Usable for adding custom object to the script engine.
      • initSession

        protected void initSession()
                            throws ScriptException
        This function is called at the beginning of the interactive session. Usable for executing various init scripts.
        Throws:
        ScriptException
      • exit

        public void exit()
      • logToFile

        public void logToFile​(String path,
                              String text)
      • truncateFile

        public void truncateFile​(String path)
      • main

        public static void main​(String[] args)