wflo...@googlemail.com
未读,2013年4月10日 00:57:482013/4/10您无权在此群组中删除帖子
要么此群组的电子邮件地址为匿名状态,要么您得查看成员电子邮件地址权限才能查看原始帖子
收件人
At the moment I'm using the AstRoot.toSource() method to generate my javascript files. But this is really slow for large js files on mobile devices (less memory), because toSource() is using a StringBuilder which holds the complete file. Is there a way to directly stream the js-code to an output file?
Example:
System.out.println("parsing js file: " + scriptUri);
Parser jsParser = new Parser();
AstRoot ast = jsParser.parse(inputStreamReader, scriptUri, 0);
System.out.println("manipulate js file: " + scriptUri);
ast.visit(new DebugInstrumentator());
System.out.println("writing js file: " + scriptUri);
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(outputStream));
writer.write(ast.toSource());
writer.close();
regards,
-cyberflohr