Use buffered output streams, if not interactive

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@965 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 20fc275afd
commit ae16dc4190
  1. 8
      jode/jode/Decompiler.java

@ -217,7 +217,8 @@ public class Decompiler {
ex.printStackTrace(GlobalOptions.err); ex.printStackTrace(GlobalOptions.err);
return; return;
} }
writer = new TabbedPrintWriter(destZip, imports); writer = new TabbedPrintWriter(new BufferedOutputStream(destZip),
imports, false);
} }
for (; i< params.length; i++) { for (; i< params.length; i++) {
try { try {
@ -245,8 +246,9 @@ public class Decompiler {
("Could not create directory " ("Could not create directory "
+ directory.getPath() + ", check permissions."); + directory.getPath() + ", check permissions.");
} }
writer = new TabbedPrintWriter(new FileOutputStream(file), writer = new TabbedPrintWriter
imports); (new BufferedOutputStream(new FileOutputStream(file)),
imports, false);
} }
GlobalOptions.err.println(params[i]); GlobalOptions.err.println(params[i]);

Loading…
Cancel
Save