org.osjava.sj.loader.util
Class IniProperties
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.osjava.sj.loader.util.AbstractProperties
org.osjava.sj.loader.util.IniProperties
- All Implemented Interfaces:
- Serializable, Cloneable, Map<Object,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
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, putAll, rehash, size, toString, values |
IniProperties
public IniProperties()
load
public void load(InputStream in)
throws 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 class AbstractProperties
- Throws:
IOException
Copyright © 2003-2008 OSJava. All Rights Reserved.