Javaparser: How can I change the encoding when I use sourceRoot.tryToParseParallelized()?

Created on 15 Mar 2019  路  3Comments  路  Source: javaparser/javaparser

SourceRoot sourceRoot = new SourceRoot(projectRoot.resolve(root));
List> parseResults = sourceRoot.tryToParseParallelized();

How to change encoding?

Improvement

All 3 comments

Ha, good question! You can't right now. If you want to do this anyway, make a copy of the source of the class and modify it for yourself.

I think the best way to implement this is to add a character set setting to ParserConfiguration...

Thank you for your cooperation

Was this page helpful?
0 / 5 - 0 ratings