com.inxar.syntacs.util
Class SetProperties

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--java.util.Properties
                    |
                    +--com.inxar.syntacs.util.SetProperties
All Implemented Interfaces:
Cloneable, Map, Serializable

public class SetProperties
extends Properties

The SetProperties class is a subclass of java.util.Properties which interprets multiple entries having the same key as an array.

See Also:
Serialized Form

Inner classes inherited from class java.util.Map
Map.Entry
 
Constructor Summary
SetProperties()
           
SetProperties(Properties defaults)
           
SetProperties(SetProperties defaults)
           
SetProperties(String file)
           
 
Method Summary
 String[] getProperties(String key)
           
 String[] getProperties(String key, String[] defaultValues)
           
 String getProperty(String key)
           
 void list(PrintStream out)
           
 void list(PrintWriter out)
           
 void load(InputStream inStream)
           
 Enumeration propertyNames()
           
 Object setProperties(String key, String[] values)
           
 void store(OutputStream out, String header)
           
 
Methods inherited from class java.util.Properties
getProperty, save, setProperty
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetProperties

public SetProperties()

SetProperties

public SetProperties(String file)
              throws IOException

SetProperties

public SetProperties(SetProperties defaults)

SetProperties

public SetProperties(Properties defaults)
Method Detail

getProperty

public String getProperty(String key)
Overrides:
getProperty in class Properties

getProperties

public String[] getProperties(String key)

getProperties

public String[] getProperties(String key,
                              String[] defaultValues)

list

public void list(PrintStream out)
Overrides:
list in class Properties

list

public void list(PrintWriter out)
Overrides:
list in class Properties

propertyNames

public Enumeration propertyNames()
Overrides:
propertyNames in class Properties

setProperties

public Object setProperties(String key,
                            String[] values)

load

public void load(InputStream inStream)
          throws IOException
Overrides:
load in class Properties

store

public void store(OutputStream out,
                  String header)
           throws IOException
Overrides:
store in class Properties