java.lang.Object
java.util.Dictionary
java.util.Hashtable
source.org.apache.java.util.ConfigurationsRepository
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- Direct Known Subclasses:
- ExtendedProperties
- public abstract class ConfigurationsRepository
- extends java.util.Hashtable
This class must be extended by properties providers that are
syntax dependent.
The implementing classes should place into the encapsulated
Hashtable only properties of the form:
[String key, String value] for single values
[String key, Vector values] where the vector must be
a sequence of strings.
- Version:
- $Revision: 1.2 $ $Date: 2000/08/08 14:01:44 $
| Nested classes inherited from class java.util.Hashtable |
|
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Fields inherited from class java.util.Hashtable |
|
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
file
protected java.lang.String file
- The file connected to this repository (holding comments and such)
model
protected java.lang.String model
- The file that contains the model of this repository
ConfigurationsRepository
public ConfigurationsRepository()
- Creates an empty configuration repository.
ConfigurationsRepository
public ConfigurationsRepository(java.lang.String file)
throws java.io.IOException
- Creates a configuration repository parsing given file.
ConfigurationsRepository
public ConfigurationsRepository(java.lang.String file,
java.lang.String model)
throws java.io.IOException
- Creates a configuration repository parsing given file and
using given model.
load
public abstract void load(java.io.InputStream input)
throws java.io.IOException
save
public abstract void save(java.io.OutputStream output,
java.lang.String Header)
throws java.io.IOException