本文整理了Java中org.mozilla.javascript.tools.shell.Global.getIn()
方法的一些代码示例,展示了Global.getIn()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Global.getIn()
方法的具体详情如下:
包路径:org.mozilla.javascript.tools.shell.Global
类名称:Global
方法名:getIn
暂无
代码示例来源:origin: com.github.tntim96/rhino
public static InputStream getIn() {
return getGlobal().getIn();
}
代码示例来源:origin: org.jvnet.hudson/embedded-rhino-debugger
public static InputStream getIn() {
return getGlobal().getIn();
}
代码示例来源:origin: ro.isdc.wro4j/rhino
public static InputStream getIn() {
return getGlobal().getIn();
}
代码示例来源:origin: ro.isdc.wro4j/rhino
public ShellConsole getConsole(Charset cs) {
if (!loadJLine(cs)) {
console = ShellConsole.getConsole(getIn(), getErr(), cs);
}
return console;
}
代码示例来源:origin: com.github.tntim96/rhino
public ShellConsole getConsole(Charset cs) {
if (!loadJLine(cs)) {
console = ShellConsole.getConsole(getIn(), getErr(), cs);
}
return console;
}
代码示例来源:origin: org.dojotoolkit/dojo-shrinksafe
static void processFiles(Context cx, String[] files) throws IOException {
StringBuffer cout = new StringBuffer();
if (files.length > 0) {
for (int i=0; i < files.length; i++) {
try {
String source = (String)readFileOrUrl(files[i], true);
cout.append(Compressor.compressScript(source, 0, 1, escapeUnicode, stripConsole));
} catch(IOException ex) {
// continue processing files
}
}
} else {
byte[] data = Kit.readStream(global.getIn(), 4096);
// Convert to String using the default encoding
String source = new String(data);
if (source != null) {
cout.append(Compressor.compressScript(source, 0, 1, escapeUnicode, stripConsole));
}
}
global.getOut().println(cout);
}
代码示例来源:origin: org.jvnet.hudson/embedded-rhino-debugger
try
in = new BufferedReader(new InputStreamReader(global.getIn(),
charEnc));
内容来源于网络,如有侵权,请联系作者删除!