Created
March 6, 2015 12:40
-
-
Save aJanuary/7373be9c96b76d2fe480 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ScriptingContainer container = new ScriptingContainer(LocalContextScope.SINGLETHREAD, LocalVariableBehavior.PERSISTENT); | |
ByteArrayOutputStream stdout = new ByteArrayOutputStream(); | |
PrintStream ps = new PrintStream(stdout); | |
container.setOutput(ps); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment