1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.ini4j.addon;
17
18 import org.ini4j.Config;
19 import org.ini4j.IniParser;
20
21 @Deprecated public class FancyIniParser extends IniParser
22 {
23 public FancyIniParser()
24 {
25 Config cfg = getConfig().clone();
26
27 cfg.setEmptyOption(true);
28 cfg.setGlobalSection(true);
29 cfg.setUnnamedSection(true);
30 cfg.setGlobalSectionName("?");
31 cfg.setInclude(true);
32 super.setConfig(cfg);
33 }
34
35 @Deprecated public synchronized void setAllowEmptyOption(boolean flag)
36 {
37 getConfig().setEmptyOption(flag);
38 }
39
40 @Deprecated public synchronized void setAllowInclude(boolean flag)
41 {
42 getConfig().setInclude(flag);
43 }
44
45 @Deprecated public synchronized void setAllowMissingSection(boolean flag)
46 {
47 getConfig().setGlobalSection(flag);
48 }
49
50 @Deprecated public synchronized void setAllowOptionCaseConversion(boolean flag)
51 {
52 getConfig().setLowerCaseOption(flag);
53 }
54
55 @Deprecated public synchronized void setAllowSectionCaseConversion(boolean flag)
56 {
57 getConfig().setLowerCaseSection(flag);
58 }
59
60 @Deprecated public synchronized void setAllowUnnamedSection(boolean flag)
61 {
62 getConfig().setUnnamedSection(flag);
63 }
64
65 @Deprecated @Override public void setConfig(Config value)
66 {
67 assert true;
68 }
69
70 @Deprecated public synchronized boolean isAllowInclude()
71 {
72 return getConfig().isInclude();
73 }
74
75 @Deprecated public synchronized String getMissingSectionName()
76 {
77 return getConfig().getGlobalSectionName();
78 }
79
80 @Deprecated public synchronized void setMissingSectionName(String name)
81 {
82 getConfig().setGlobalSectionName(name);
83 }
84
85 @Deprecated public synchronized boolean isAllowEmptyOption()
86 {
87 return getConfig().isEmptyOption();
88 }
89
90 @Deprecated public synchronized boolean isAllowMissingSection()
91 {
92 return getConfig().isGlobalSection();
93 }
94
95 @Deprecated public synchronized boolean isAllowOptionCaseConversion()
96 {
97 return getConfig().isLowerCaseOption();
98 }
99
100 @Deprecated public synchronized boolean isAllowSectionCaseConversion()
101 {
102 return getConfig().isLowerCaseSection();
103 }
104
105 @Deprecated public synchronized boolean isAllowUnnamedSection()
106 {
107 return getConfig().isUnnamedSection();
108 }
109 }