diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2010-03-03 14:01:18 +0100 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2010-03-03 14:01:18 +0100 |
commit | b67973f21ad24df3c39f828a5b44a5863764a40b (patch) | |
tree | 470f673b2cd5a955ba7e188f58a23492085a9ab0 /qadevOOo/runner/graphical/IniFile.java | |
parent | 6ee33e01b1fbd367ce01dc5650eb9e3c089672ab (diff) | |
parent | 46feaa99faff38763a172beddba10f94fed6070e (diff) |
CWS-TOOLING: integrate CWS qadev40
Diffstat (limited to 'qadevOOo/runner/graphical/IniFile.java')
-rw-r--r-- | qadevOOo/runner/graphical/IniFile.java | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/qadevOOo/runner/graphical/IniFile.java b/qadevOOo/runner/graphical/IniFile.java index 5173c493f46a..832aef795e71 100644 --- a/qadevOOo/runner/graphical/IniFile.java +++ b/qadevOOo/runner/graphical/IniFile.java @@ -588,29 +588,29 @@ public class IniFile implements Enumeration /** * some tests for this class */ - public static void main(String[] args) - { - String sTempFile = System.getProperty("java.io.tmpdir"); - sTempFile += "inifile"; - - - IniFile aIniFile = new IniFile(sTempFile); - String sValue = aIniFile.getValue("Section", "Key"); - // insert a new value to a already exist section - aIniFile.insertValue("Section", "Key2", "a new value in a existing section"); - // replace a value - aIniFile.insertValue("Section", "Key", "replaced value"); - // create a new value - aIniFile.insertValue("New Section", "Key", "a new key value pair"); - aIniFile.insertValue("New Section", "Key2", "a new second key value pair"); - - String sValue2 = aIniFile.getValue("Section2", "Key"); - - aIniFile.removeSection("Section"); - aIniFile.removeSection("New Section"); - - aIniFile.close(); - } +// public static void main(String[] args) +// { +// String sTempFile = System.getProperty("java.io.tmpdir"); +// sTempFile += "inifile"; +// +// +// IniFile aIniFile = new IniFile(sTempFile); +// String sValue = aIniFile.getValue("Section", "Key"); +// // insert a new value to a already exist section +// aIniFile.insertValue("Section", "Key2", "a new value in a existing section"); +// // replace a value +// aIniFile.insertValue("Section", "Key", "replaced value"); +// // create a new value +// aIniFile.insertValue("New Section", "Key", "a new key value pair"); +// aIniFile.insertValue("New Section", "Key2", "a new second key value pair"); +// +// String sValue2 = aIniFile.getValue("Section2", "Key"); +// +// aIniFile.removeSection("Section"); +// aIniFile.removeSection("New Section"); +// +// aIniFile.close(); +// } /** * Enumeration Interface |