From 8b87e6f94077657cfda9eef8e50805a357ea657d Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Wed, 28 Aug 2002 01:17:23 +0000 Subject: improving XML support --- java/src/IceUtil/OutputBase.java | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'java/src/IceUtil/OutputBase.java') diff --git a/java/src/IceUtil/OutputBase.java b/java/src/IceUtil/OutputBase.java index e801ea3a1a7..beb87409879 100644 --- a/java/src/IceUtil/OutputBase.java +++ b/java/src/IceUtil/OutputBase.java @@ -18,9 +18,9 @@ public class OutputBase _out = null; _pos = 0; _indent = 0; - _separator = true; - _useTab = true; _indentSize = 4; + _useTab = true; + _separator = true; } public @@ -29,9 +29,9 @@ public class OutputBase _out = out; _pos = 0; _indent = 0; - _separator = true; - _useTab = true; _indentSize = 4; + _useTab = true; + _separator = true; } public @@ -40,13 +40,25 @@ public class OutputBase _out = null; _pos = 0; _indent = 0; - _separator = true; - _useTab = true; _indentSize = 4; + _useTab = true; + _separator = true; open(s); } + public void + setIndent(int indentSize) + { + _indentSize = indentSize; + } + + public void + setUseTab(boolean useTab) + { + _useTab = useTab; + } + public void open(String s) { @@ -114,18 +126,6 @@ public class OutputBase _indent = ((Integer)_indentSave.removeFirst()).intValue(); } - public void - setIndent(int indentSize) - { - _indentSize = indentSize; - } - - public void - setUseTab(boolean useTab) - { - _useTab = useTab; - } - public void nl() { @@ -182,9 +182,9 @@ public class OutputBase protected java.io.PrintWriter _out; protected int _pos; protected int _indent; + protected int _indentSize; protected java.util.LinkedList _indentSave = new java.util.LinkedList(); + protected boolean _useTab; protected boolean _separator; - protected boolean _useTab; - protected int _indentSize; } -- cgit v1.2.3