All Known Implementing Classes:
ColorPalette, Settings

public interface IConfig
Common config interface
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Creates the config file and directories
    Loads the config
    void
    Writes the config
    Upgrades the config from an earlier version
  • Method Details

    • load

      IConfig load() throws IOException
      Loads the config
      Returns:
      itself after loading
      Throws:
      IOException - This can fail if the file could not be read correctly
    • upgrade

      IConfig upgrade()
      Upgrades the config from an earlier version
      Returns:
      itself after upgrading
    • save

      void save()
      Writes the config
    • create

      void create()
      Creates the config file and directories