org.osjava.sj.loader.util
Class IniProperties

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended byorg.osjava.sj.loader.util.AbstractProperties
                  extended byorg.osjava.sj.loader.util.IniProperties
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

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
 
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


Copyright © 2003-2007 OSJava. All Rights Reserved.