| Package | org.spicefactory.parsley.properties.util |
| Class | public class PropertiesParser |
| Inheritance | PropertiesParser Object |
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.
| Method | Defined By | ||
|---|---|---|---|
parse(string:String):Object
Parses the specified string into name/value pairs represented by the properties of the returned object. | PropertiesParser | ||
| parse | () | method |
public function parse(string:String):ObjectParses the specified string into name/value pairs represented by the properties of the returned object.
Parameters
string:String — the string to parse
|
Object — an object representing the name/value pairs
|