Class PreferencesFile

All Implemented Interfaces:
FileReaderSource, FilterSource, InputStreamSource, ReaderSource, VirtualFileReaderSource, RegistryContext, CountingInputStream.Monitor

public class PreferencesFile extends FileSource
  • Constructor Details

  • Method Details

    • loadProperties

      public void loadProperties() throws IOException
      Throws:
      IOException
    • getPreference

      public String getPreference(String name)
      Preferences are only get once, then they are set to global pref.
      Parameters:
      name -
      Returns:
    • peekAt

      public String peekAt(String name)
      Return the value of a preference without removing it from the set.
      Parameters:
      name -
      Returns:
    • writeOption

      public void writeOption(String opt, String val)
      Add a option value. If the option is already referred in the property file change its value instead.
    • printOptions

      public void printOptions()