From e589bcd3bdbca118604ccd50afe6be15e4366555 Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 29 Jun 1999 10:56:13 +0000 Subject: [PATCH] allow specification of autoflush git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@967 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/decompiler/TabbedPrintWriter.java | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) 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); }