Class PropertyListConfiguration

    • Constructor Detail

      • PropertyListConfiguration

        public PropertyListConfiguration()
        Creates an empty PropertyListConfiguration object which can be used to synthesize a new plist file by adding values and then saving().
      • PropertyListConfiguration

        public PropertyListConfiguration​(HierarchicalConfiguration<ImmutableNode> c)
        Creates a new instance of PropertyListConfiguration and copies the content of the specified configuration into this object.
        Parameters:
        c - the configuration to copy
        Since:
        1.4
    • Method Detail

      • addPropertyInternal

        protected void addPropertyInternal​(java.lang.String key,
                                           java.lang.Object value)
        Description copied from class: AbstractHierarchicalConfiguration
        Adds the property with the specified key. This task will be delegated to the associated ExpressionEngine, so the passed in key must match the requirements of this implementation.
        Overrides:
        addPropertyInternal in class AbstractHierarchicalConfiguration<ImmutableNode>
        Parameters:
        key - the key of the new property
        value - the value of the new property
      • read

        public void read​(java.io.Reader in)
                  throws ConfigurationException
        Description copied from interface: FileBased
        Reads the content of this object from the given reader. Client code should not call this method directly, but use a FileHandler for reading data.
        Specified by:
        read in interface FileBased
        Parameters:
        in - the reader
        Throws:
        ConfigurationException - if a non-I/O related problem occurs, e.g. the data read does not have the expected format
      • write

        public void write​(java.io.Writer out)
                   throws ConfigurationException
        Description copied from interface: FileBased
        Writes the content of this object to the given writer. Client code should not call this method directly, but use a FileHandler for writing data.
        Specified by:
        write in interface FileBased
        Parameters:
        out - the writer
        Throws:
        ConfigurationException - if a non-I/O related problem occurs, e.g. the data read does not have the expected format