Package org.osjava.sj.loader.util
Class IniProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<java.lang.Object,java.lang.Object>
-
- java.util.Properties
-
- org.osjava.sj.loader.util.AbstractProperties
-
- org.osjava.sj.loader.util.IniProperties
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.Object,java.lang.Object>
public class IniProperties extends AbstractProperties
Functionally like the CustomProperties class in that it has comments and an order, IniProperties reads .ini files. These implicitly have a two level dotted notation, though any values not in the two level are treated as simple one levels. Comments are a semi-colon.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.osjava.sj.loader.util.AbstractProperties
index
-
-
Constructor Summary
Constructors Constructor Description IniProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
load(java.io.InputStream in)
Load in a .ini file.-
Methods inherited from class org.osjava.sj.loader.util.AbstractProperties
getDelimiter, keys, keySet, propertyNames, put, remove, save, setDelimiter, setProperty, store
-
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, list, list, load, loadFromXML, merge, putAll, putIfAbsent, rehash, remove, replace, replace, replaceAll, size, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
-
-
-
Method Detail
-
load
public void load(java.io.InputStream in) throws java.io.IOException
Load in a .ini file. semi-colons are comments. blocks are denoted with square brackets. values are then key=value pairs, with blocks being prepended to keys.- Specified by:
load
in classAbstractProperties
- Throws:
java.io.IOException
-
-