public InputStream getIn() { if (inStream == null && !attemptedJLineLoad) { if (loadJLine(Charset.defaultCharset())) { inStream = console.getIn(); } } return inStream == null ? System.in : inStream; }
@Deprecated public static InputStream getStream(Scriptable scope) { ShellConsole console = ShellConsole.getConsole(scope, Charset.defaultCharset()); return (console != null ? console.getIn() : null); } }
public InputStream getIn() { if (inStream == null && !attemptedJLineLoad) { if (loadJLine(Charset.defaultCharset())) { inStream = console.getIn(); } } return inStream == null ? System.in : inStream; }
@Deprecated public static InputStream getStream(Scriptable scope) { ShellConsole console = ShellConsole.getConsole(scope, Charset.defaultCharset()); return (console != null ? console.getIn() : null); } }