![]() |
Diffusion .NET Classic API - Core and Common
5.9.4
|
An implementation of the Java Properties class. More...
Public Member Functions | |
Properties () | |
Creates an empty property list with no default values. More... | |
Properties (IDictionary p) | |
Creates a property list with the specified initial properties. More... | |
void | Load (Stream stream) |
Reads a property list (key and element pairs) from the input stream. More... | |
void | Load (TextReader textReader) |
Reads a property list (key and element pairs) from a text reader. More... | |
void | Load (IDictionary dictionary, Stream stream) |
Reads a property list (key and element pairs) from the input stream. More... | |
void | Load (IDictionary dictionary, TextReader textReader) |
Reads a property list (key and element pairs) from a text reader. More... | |
string | GetProperty (string key) |
Searches for the property with the specified key in this property list. More... | |
string | GetProperty (string key, string def) |
Searches for the property with the specified key in this property list. More... | |
void | List (Stream stream) |
Writes this property list out to the specified stream. More... | |
void | SetProperty (string key, string theValue) |
Sets the specified property key / value pair. More... | |
void | Store (Stream stream, string header) |
Writes the properties in this instance out to the supplied stream. More... | |
override void | Remove (object key) |
Removes the key / value pair identified by the supplied key. More... | |
override void | Add (object key, object value) |
Adds/removes the specified key/object pair to this collection. More... | |
Properties | |
override object | this[object key] [get, set] |
Adds/removes the specified key/object pair to this collection. More... | |
An implementation of the Java Properties class.
For the complete syntax see java.util.Properties JavaDoc. This class supports an extended syntax. There may also be sole keys on a line, in that case values are treated as null
.
will result in the name/value pairs:
note, that to specify a null
value, the key must not be followed by any character except newline.
<author>Simon White</author>
PushTechnology.DiffusionCore.PropertyHandler.Properties.Properties | ( | ) |
Creates an empty property list with no default values.
PushTechnology.DiffusionCore.PropertyHandler.Properties.Properties | ( | IDictionary | p | ) |
Creates a property list with the specified initial properties.
p | The initial properties. |
override void PushTechnology.DiffusionCore.PropertyHandler.Properties.Add | ( | object | key, |
object | value | ||
) |
Adds/removes the specified key/object pair to this collection.
key | The key. |
value | The value. |
string PushTechnology.DiffusionCore.PropertyHandler.Properties.GetProperty | ( | string | key | ) |
Searches for the property with the specified key in this property list.
key | The key. |
string PushTechnology.DiffusionCore.PropertyHandler.Properties.GetProperty | ( | string | key, |
string | def | ||
) |
Searches for the property with the specified key in this property list.
key | The key. |
def | The default value to be returned if the key is not found. |
void PushTechnology.DiffusionCore.PropertyHandler.Properties.List | ( | Stream | stream | ) |
Writes this property list out to the specified stream.
stream | The stream to write to. |
void PushTechnology.DiffusionCore.PropertyHandler.Properties.Load | ( | Stream | stream | ) |
Reads a property list (key and element pairs) from the input stream.
stream | The stream to load from. |
void PushTechnology.DiffusionCore.PropertyHandler.Properties.Load | ( | TextReader | textReader | ) |
Reads a property list (key and element pairs) from a text reader.
textReader | The text reader to load from. |
void PushTechnology.DiffusionCore.PropertyHandler.Properties.Load | ( | IDictionary | dictionary, |
Stream | stream | ||
) |
Reads a property list (key and element pairs) from the input stream.
dictionary | the dictionary to put it in |
stream | The stream to load from. |
void PushTechnology.DiffusionCore.PropertyHandler.Properties.Load | ( | IDictionary | dictionary, |
TextReader | textReader | ||
) |
Reads a property list (key and element pairs) from a text reader.
dictionary | the dictionary to put it in |
textReader | The text reader to load from. |
override void PushTechnology.DiffusionCore.PropertyHandler.Properties.Remove | ( | object | key | ) |
Removes the key / value pair identified by the supplied key.
key | The key identifying the key / value pair to be removed. |
void PushTechnology.DiffusionCore.PropertyHandler.Properties.SetProperty | ( | string | key, |
string | theValue | ||
) |
Sets the specified property key / value pair.
key | The key. |
theValue | The value. |
void PushTechnology.DiffusionCore.PropertyHandler.Properties.Store | ( | Stream | stream, |
string | header | ||
) |
Writes the properties in this instance out to the supplied stream.
stream | The stream to write to. |
header | Arbitrary header information. |
|
getset |
Adds/removes the specified key/object pair to this collection.