java - How to Print in Console Using com.strobel.decompiler.PlainTextOutput -
i using proycon library application, plaintextoutput class inside proycon library,
during googling have found code block given below.what means, can print console using code ?
com.strobel.decompiler.decompiler.decompile( "d:\\buildconfig.class",new com.strobel.decompiler.plaintextoutput(new java.io.outputstreamwriter(system.out)));
this seems oversight in implementation; it's not flushing writer
you. try this:
final printwriter writer = new printwriter(system.out); try { com.strobel.decompiler.decompiler.decompile( "d:\\buildconfig.class", new com.strobel.decompiler.plaintextoutput(writer) ); } { writer.flush(); }
i'll fixing next procyon release.
Comments
Post a Comment