Class ConfigParser

java.lang.Object
javachess.parser.ConfigParser

public class ConfigParser extends Object
Class to parse a configuration file.
  • Constructor Details

    • ConfigParser

      public ConfigParser(String filePath)
    • ConfigParser

      public ConfigParser()
  • Method Details

    • save

      public void save() throws IOException
      Saves the current configuration to the file.
      Throws:
      IOException
    • getValue

      public String getValue(String key, String defaultValue)
      Gets a value from the configuration file.
    • setValue

      public void setValue(String key, String value)
      Sets a value in the configuration file.
    • getLanguage

      public Language getLanguage()