org.apache.commons.configuration.plist
public class PropertyListConfiguration extends AbstractHierarchicalFileConfiguration
Example:
{
foo = "bar";
array = ( value1, value2, value3 );
data = <4f3e0145ab>;
nested =
{
key1 = value1;
key2 = value;
nested =
{
foo = bar
}
}
}
Since: 1.2
Version: $Revision: 492216 $, $Date: 2007-01-03 17:51:24 +0100 (Mi, 03 Jan 2007) $
| Field Summary | |
|---|---|
| static int | INDENT_SIZE Size of the indentation for the generated file. |
| static long | serialVersionUID
The serial version UID. |
| Constructor Summary | |
|---|---|
| PropertyListConfiguration()
Creates an empty PropertyListConfiguration object which can be
used to synthesize a new plist file by adding values and
then saving(). | |
| PropertyListConfiguration(HierarchicalConfiguration c)
Creates a new instance of PropertyListConfiguration and
copies the content of the specified configuration into this object.
| |
| PropertyListConfiguration(String fileName)
Creates and loads the property list from the specified file.
| |
| PropertyListConfiguration(File file)
Creates and loads the property list from the specified file.
| |
| PropertyListConfiguration(URL url)
Creates and loads the property list from the specified URL.
| |
| Method Summary | |
|---|---|
| void | load(Reader in) |
| void | printNode(PrintWriter out, int indentLevel, Node node)
Append a node to the writer, indented according to a specific level. |
| void | printValue(PrintWriter out, int indentLevel, Object value)
Append a value to the writer, indented according to a specific level. |
| String | quoteString(String s)
Quote the specified string if necessary, that's if the string contains:
|
| void | save(Writer out) |
PropertyListConfiguration and
copies the content of the specified configuration into this object.
Parameters: c the configuration to copy
Since: 1.4
Parameters: fileName The name of the plist file to load.
Throws: ConfigurationException Error while loading the plist file
Parameters: file The plist file to load.
Throws: ConfigurationException Error while loading the plist file
Parameters: url The location of the plist file to load.
Throws: ConfigurationException Error while loading the plist file
Examples: