diff --git a/jode/jode/decompiler/TabbedPrintWriter.java b/jode/jode/decompiler/TabbedPrintWriter.java index 580a5dd..4308efb 100644 --- a/jode/jode/decompiler/TabbedPrintWriter.java +++ b/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); }