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 25 years ago
parent 20fc275afd
commit ae16dc4190
  1. 8
      jode/jode/Decompiler.java

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

Loading…
Cancel
Save