org.osjava.sj.loader.util
Class IniProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by org.osjava.sj.loader.util.AbstractProperties
                  extended by 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
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
IniProperties()
           
 
Method Summary
 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
getProperty, getProperty, list, list, load, loadFromXML, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, putAll, rehash, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IniProperties

public IniProperties()
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 class AbstractProperties
Throws:
java.io.IOException