org.osjava.sj.loader.util
Class AbstractProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by org.osjava.sj.loader.util.AbstractProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>
Direct Known Subclasses:
CustomProperties, IniProperties, XmlProperties

public abstract class AbstractProperties
extends Properties

See Also:
Serialized Form

Field Summary
protected  ArrayList index
           
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
AbstractProperties()
           
AbstractProperties(Properties props)
           
 
Method Summary
 String getDelimiter()
           
 Enumeration keys()
           
 Set keySet()
           
abstract  void load(InputStream in)
           
 Enumeration propertyNames()
           
 Object put(Object key, Object value)
           
 Object remove(Object key)
           
 void save(OutputStream outstrm, String header)
          Currently will write out defaults as well, which is not in the specification.
 void setDelimiter(String delimiter)
           
 Object setProperty(String key, String value)
           
 void store(OutputStream outstrm, String header)
          Currently will write out defaults as well, which is not in the specification.
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, loadFromXML, storeToXML, storeToXML
 
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
 

Field Detail

index

protected ArrayList index
Constructor Detail

AbstractProperties

public AbstractProperties()

AbstractProperties

public AbstractProperties(Properties props)
Method Detail

load

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

setDelimiter

public void setDelimiter(String delimiter)

getDelimiter

public String getDelimiter()

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map<Object,Object>
Overrides:
put in class Hashtable<Object,Object>

setProperty

public Object setProperty(String key,
                          String value)
Overrides:
setProperty in class Properties

remove

public Object remove(Object key)
Specified by:
remove in interface Map<Object,Object>
Overrides:
remove in class Hashtable<Object,Object>

propertyNames

public Enumeration propertyNames()
Overrides:
propertyNames in class Properties

keys

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

keySet

public Set keySet()
Specified by:
keySet in interface Map<Object,Object>
Overrides:
keySet in class Hashtable<Object,Object>

save

public void save(OutputStream outstrm,
                 String header)
Currently will write out defaults as well, which is not in the specification.

Overrides:
save in class Properties

store

public void store(OutputStream outstrm,
                  String header)
           throws IOException
Currently will write out defaults as well, which is not in the specification.

Overrides:
store in class Properties
Throws:
IOException


Copyright © 2003-2008 OSJava. All Rights Reserved.