I want to get realtime output as a script runs in ScriptEngine. For this I am using a StringWriter but its buffer is still empty and the output goe
ScriptEngine
StringWriter