private static Program combineInput(boolean literate, String... fileNames) throws IOException {
final Program result = new Program();
for (String fileName : fileNames) {
CharStream stream;
if (!literate) {
stream = CharStreams.fromFileName(fileName);
} else {
stream = CharStreams.fromChannel(
streamToChannel(literate(lines(Paths.get(fileName)))),
4096,
CodingErrorAction.REPLACE,
fileName
);
}
result.accumulate(PARSER.parse(stream));
}
return result;
}
Main.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:Alpha
作者:
评论列表
文章目录