我在我的应用程序中使用Proycon库,PlainTextOutput是Proycon库中的一个类,
在谷歌搜索过程中,我发现了代码块,给定below.what这意味着,我可以使用此代码打印到控制台吗?
com.strobel.decompiler.Decompiler.decompile(
"D:\\BuildConfig.class",new com.strobel.decompiler.PlainTextOutput(new java.io.OutputStreamWriter(System.out)));发布于 2014-03-11 01:29:52
这似乎是实现过程中的疏忽;它不会为您刷新Writer。试试这个:
final PrintWriter writer = new PrintWriter(System.out);
try {
com.strobel.decompiler.Decompiler.decompile(
"D:\\BuildConfig.class",
new com.strobel.decompiler.PlainTextOutput(writer)
);
}
finally {
writer.flush();
}我将在下一个Procyon版本中研究修复这个问题。
https://stackoverflow.com/questions/22298263
复制相似问题