Packageorg.spicefactory.parsley.properties.util
Classpublic class PropertiesParser
InheritancePropertiesParser Inheritance Object

Parses a string conforming to property file syntac into an object representing the name/value pairs in its properties.

The supported syntax looks like this:

                  name1=some value
 name2 = another value
 # a comment
 name 3 = this is a \
 multiline value
               

The name and value pairs are delimited by a '=' character. Both name and value will be trimmed. A comment line starts with the '#' character and will be ignored. The same goes for empty lines. Multiline property values can be created through the use of the '\' character at the end of the line.



Public Methods
 MethodDefined By
  
parse(string:String):Object
Parses the specified string into name/value pairs represented by the properties of the returned object.
PropertiesParser
Method Detail
parse()method
public function parse(string:String):Object

Parses the specified string into name/value pairs represented by the properties of the returned object.

Parameters

string:String — the string to parse

Returns
Object — an object representing the name/value pairs