org.apache.java.util
Class ConfigurationsRepository
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--org.apache.java.util.ConfigurationsRepository
- All Implemented Interfaces:
- Cloneable, Map, Serializable
- Direct Known Subclasses:
- ExtendedProperties
- public abstract class ConfigurationsRepository
- extends 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.
- See Also:
- Serialized Form
Field Summary |
protected String |
file
The file connected to this repository (holding comments and such) |
protected String |
model
The file that contains the model of this repository |
Method Summary |
void |
combine(Hashtable hash)
Combines an existing Hashtable with this Hashtable
Warning: It will overwrite previous entries without warning |
abstract void |
load(InputStream input)
A method to load the properties into a ConfigurationsRepository |
abstract void |
save(OutputStream output,
String Header)
Not implemented |
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 String file
- The file connected to this repository (holding comments and such)
model
protected String model
- The file that contains the model of this repository
ConfigurationsRepository
public ConfigurationsRepository()
- Creates an empty configuration repository.
ConfigurationsRepository
public ConfigurationsRepository(String file)
throws IOException
- Creates a configuration repository parsing given file.
ConfigurationsRepository
public ConfigurationsRepository(String file,
String model)
throws IOException
- Creates a configuration repository parsing given file and
using given model.
combine
public void combine(Hashtable hash)
- Combines an existing Hashtable with this Hashtable
Warning: It will overwrite previous entries without warning
load
public abstract void load(InputStream input)
throws IOException
- A method to load the properties into a ConfigurationsRepository
save
public abstract void save(OutputStream output,
String Header)
throws IOException
- Not implemented