com.ca.jcs.standalone
Class FormattedProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by com.ca.jcs.standalone.FormattedProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class FormattedProperties
extends Properties

A customised Java properties implementation that adds support for:

Author:
fittr01
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
FormattedProperties()
          Default constructor.
FormattedProperties(Properties props)
          Constructor taking existing properties.
 
Method Summary
 Enumeration<Object> keys()
           
 void load(InputStream inStream)
          Load properties from the specified InputStream.
 void store(OutputStream out, String comments)
           
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormattedProperties

public FormattedProperties()
Default constructor.


FormattedProperties

public FormattedProperties(Properties props)
Constructor taking existing properties.

Parameters:
props - the existing properties.
Method Detail

keys

public Enumeration<Object> keys()
Overrides:
keys in class Hashtable<Object,Object>

load

public void load(InputStream inStream)
          throws IOException
Load properties from the specified InputStream.

Overload the load method in Properties so we can keep any comments or blank lines in the header.

Overrides:
load in class Properties
Parameters:
inStream - The InputStream to read.
Throws:
IOException

store

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


Created 2011-07-14 13:27 EST