wflo...@googlemail.com
не прочитано,10 апр. 2013 г., 00:57:4810.04.2013У вас нет разрешения на удаление сообщений в этой группе.
Показать исходное сообщение
Возможно, адреса электронной почты являются анонимными для этой группы или вам требуется разрешение на просмотр адресов электронной почты ее участников, чтобы увидеть исходное сообщение.
–
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