diff options
author | Mark Spruiell <mes@zeroc.com> | 2002-08-28 01:17:23 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2002-08-28 01:17:23 +0000 |
commit | 8b87e6f94077657cfda9eef8e50805a357ea657d (patch) | |
tree | a53aeee11a2d5fae87a12ea876443bdf2e04faea /java/src/IceUtil/OutputBase.java | |
parent | adding XML support (diff) | |
download | ice-8b87e6f94077657cfda9eef8e50805a357ea657d.tar.bz2 ice-8b87e6f94077657cfda9eef8e50805a357ea657d.tar.xz ice-8b87e6f94077657cfda9eef8e50805a357ea657d.zip |
improving XML support
Diffstat (limited to 'java/src/IceUtil/OutputBase.java')
-rw-r--r-- | java/src/IceUtil/OutputBase.java | 40 |
1 files changed, 20 insertions, 20 deletions
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,14 +40,26 @@ 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) { try @@ -115,18 +127,6 @@ public class OutputBase } public void - setIndent(int indentSize) - { - _indentSize = indentSize; - } - - public void - setUseTab(boolean useTab) - { - _useTab = useTab; - } - - public void nl() { _out.println(); @@ -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; } |