com.generationjava.util
Class OrderedProperties
java.lang.Object
java.util.Dictionary
java.util.Hashtable
java.util.Properties
com.generationjava.util.OrderedProperties
- All Implemented Interfaces:
- Cloneable, Map, Serializable
- Direct Known Subclasses:
- CommentedOrderedProperties
- public class OrderedProperties
- extends Properties
java.util.Properties stores keys and values, but it does not store them in
an ordered way. Annoyingly, there is no easy way to splice this feature in,
rather it leads to a rewrite of most of the methods and the creation.
This is that rewrite.
- See Also:
- Serialized Form
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, putAll, rehash, size, toString, values |
index
protected ArrayList index
OrderedProperties
public OrderedProperties()
OrderedProperties
public OrderedProperties(Properties props)
load
public static OrderedProperties load(File file)
put
public Object put(Object key,
Object value)
setProperty
public Object setProperty(String key,
String value)
remove
public Object remove(Object key)
propertyNames
public Enumeration propertyNames()
keys
public Enumeration keys()
keySet
public Set keySet()
save
public void save(OutputStream outstrm,
String header)
- Currently will write out defaults as well, which is not
in the specification.
store
public void store(OutputStream outstrm,
String header)
throws IOException
- Currently will write out defaults as well, which is not
in the specification.
- Throws:
IOException
Copyright © 2000-2005 OSJava. All Rights Reserved.