Util/ Properties.js

Allows access to, and maipulation of, properites files.  These are files that have name value pairs.  An example of a file would be:

#this is a coment
myprop=this one here
other.prop=343444

Copyright

2005-2006 Rob Rohan (robr.nosp@m.ohan@gmai.nosp@m.l.com) All rights reserved

Related

Util/Collections.js

Summary
Allows access to, and maipulation of, properites files.
Class to deal with properies files.
Used to load a properies file from a string
an array of two items, name and value
Returns an enumeration of all the keys in this property list, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list.
Gets the value from the properites by key.
Sets (or adds) a property from this properties object
Writes the properties to string for storage into a cookie or xmlhttp
the current version

Properties

Class to deal with properies files.

Namespace

Sortie.Util

Summary
Used to load a properies file from a string
an array of two items, name and value
Returns an enumeration of all the keys in this property list, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list.
Gets the value from the properites by key.
Sets (or adds) a property from this properties object
Writes the properties to string for storage into a cookie or xmlhttp
the current version

Functions

Properties. Parse

Used to load a properies file from a string

Parameters

stylenull=plain text, 2=escaped, 3=base64ed

Return

Properties. SplitNameValue

Returns

an array of two items, name and value

Properties. PropertyNames

Returns an enumeration of all the keys in this property list, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list.

Returns

an array of key names

Properties. GetProperty

Gets the value from the properites by key.  If key is not found it will return what (if anything) is passed in defaultValue.  If key is not found and no defaultvalue given, it’ll return null

Parameters

keythe string key to search for
defaultValue(optional) the value to return if the key is not found

Returns

the property as a string, the default value, or null

Properties. SetProperty

Sets (or adds) a property from this properties object

Parameters

keythe key
valuethe value

Properties. Store

Writes the properties to string for storage into a cookie or xmlhttp

Parameters

stylenull=plain text, 2=escaped
headerthe header to put at the top of the file (string) can be null

Return

This object in a string form ready for saving

Variables

Sortie. Util. Properties. VERSION

the current version