allow specification of autoflush

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@967 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 0f1a4bd498
commit e589bcd3bd
  1. 18
      jode/jode/decompiler/TabbedPrintWriter.java

@ -35,20 +35,30 @@ public class TabbedPrintWriter {
ImportHandler imports;
Stack scopes = new Stack();
public TabbedPrintWriter (OutputStream os, ImportHandler imports) {
pw = new PrintWriter(os, true);
public TabbedPrintWriter (OutputStream os, ImportHandler imports,
boolean autoFlush) {
pw = new PrintWriter(os, autoFlush);
this.imports = imports;
this.indentsize = (Decompiler.outputStyle & Decompiler.TAB_SIZE_MASK);
atbol = true;
}
public TabbedPrintWriter (Writer os, ImportHandler imports) {
pw = new PrintWriter(os, true);
public TabbedPrintWriter (Writer os, ImportHandler imports,
boolean autoFlush) {
pw = new PrintWriter(os, autoFlush);
this.imports = imports;
this.indentsize = (Decompiler.outputStyle & Decompiler.TAB_SIZE_MASK);
atbol = true;
}
public TabbedPrintWriter (OutputStream os, ImportHandler imports) {
this(os, imports, true);
}
public TabbedPrintWriter (Writer os, ImportHandler imports) {
this(os, imports, true);
}
public TabbedPrintWriter (OutputStream os) {
this(os, null);
}

Loading…
Cancel
Save