Package sidplay.ini

Klasse IniConfig

java.lang.Object
sidplay.ini.IniConfig
Alle implementierten Schnittstellen:
IConfig

public class IniConfig extends Object implements IConfig
Configuration of the console version of JSIDPlay2. INI configuration file support responsible to load and save all emulator settings.
Autor:
Ken Händel
  • Felddetails

  • Konstruktordetails

    • IniConfig

      public IniConfig()
      Read internal configuration file.
    • IniConfig

      public IniConfig(boolean createIfNotExists)
      Read configuration file (external or internal, if it does not exist).
      Parameter:
      createIfNotExists - If external configuration file does not exist, create it
    • IniConfig

      private IniConfig(boolean createIfNotExists, File iniPath)
  • Methodendetails

    • clear

      private void clear()
    • getFilterSection

      public final List<? extends IFilterSection> getFilterSection()
      Angegeben von:
      getFilterSection in Schnittstelle IConfig
    • getDefault

      public static final IniConfig getDefault()
      Get default configuration, read from internal jsidplay2.ini file.
      This is a Single instance!
      Gibt zurück:
      default configuration
    • getINIPath

      public static File getINIPath()
      Determine INI filename.
      1. If INI file exists in the user directory, then use it, else
      2. use INI file in the current working directory
      Gibt zurück:
      the absolute path name of the INI file to use
    • createINIBackup

      private void createINIBackup(File iniFile)
      Create backup of old INI file
      Parameter:
      iniFile - the INI file to backup
    • readInternal

      private void readInternal()
    • write

      public final void write()
    • getSidplay2Section

      public final ISidPlay2Section getSidplay2Section()
      Angegeben von:
      getSidplay2Section in Schnittstelle IConfig
    • getC1541Section

      public final IC1541Section getC1541Section()
      Angegeben von:
      getC1541Section in Schnittstelle IConfig
    • getPrinterSection

      public final IPrinterSection getPrinterSection()
      Angegeben von:
      getPrinterSection in Schnittstelle IConfig
    • getConsoleSection

      public final IConsoleSection getConsoleSection()
      Angegeben von:
      getConsoleSection in Schnittstelle IConfig
    • getAudioSection

      public final IAudioSection getAudioSection()
      Angegeben von:
      getAudioSection in Schnittstelle IConfig
    • getEmulationSection

      public final IEmulationSection getEmulationSection()
      Angegeben von:
      getEmulationSection in Schnittstelle IConfig
    • getWhatsSidSection

      public final IWhatsSidSection getWhatsSidSection()
      Angegeben von:
      getWhatsSidSection in Schnittstelle IConfig
    • toString

      public final String toString()
      Setzt außer Kraft:
      toString in Klasse Object