its.util
Class Properties3

java.lang.Object
  extended byits.util.Properties3

public class Properties3
extends java.lang.Object

This class is similar to java.util.Properties, but with an alternative syntax that allows for properties to span multiple lines. An application can optionally provide objects that know how to parse any of the property values. A property name is specified on a line by itself, surrounded by [square brackets]. All the lines that follow a property name, until the next property name is reached, constitute the value of that property. For example: [host] lukep.its.washington.edu [port] 9999 [ListOfIntegers] 0x111 0x123 0x124 #[Property4] #Whatever you like. # (indicates a comment)


Constructor Summary
Properties3()
           
Properties3(java.util.Hashtable propertyParsers)
           
 
Method Summary
 java.lang.String getProperty(java.lang.String key)
           
 java.util.Enumeration getPropertyNames()
           
 void load(java.io.InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Properties3

public Properties3()

Properties3

public Properties3(java.util.Hashtable propertyParsers)
Parameters:
propertyParsers - a Hashtable in which each key is a property name, and its associated value is a subclass of PropertyParser.
Method Detail

getPropertyNames

public java.util.Enumeration getPropertyNames()

getProperty

public java.lang.String getProperty(java.lang.String key)

load

public void load(java.io.InputStream is)
          throws java.io.IOException,
                 PropertyParserException
Throws:
java.io.IOException
PropertyParserException