Class JSONConfiguration

    • Constructor Detail

      • JSONConfiguration

        public JSONConfiguration()
        Creates a new instance of JSONConfiguration.
      • JSONConfiguration

        public JSONConfiguration​(HierarchicalConfiguration<ImmutableNode> c)
        Creates a new instance of JSONConfiguration as a copy of the specified configuration.
        Parameters:
        c - the configuration to be copied
    • Method Detail

      • 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,
                          java.io.IOException
        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
        java.io.IOException - if an I/O error occurs.