Class WinFirefoxProfileSource

  • All Implemented Interfaces:
    FirefoxProfileSource

    class WinFirefoxProfileSource
    extends java.lang.Object
    implements FirefoxProfileSource
    Finds the Firefox profile on Windows platforms. On Windows the profiles are located in the users appdata directory under:

    Mozilla\Firefox\Profiles\

    The location of the appdata folder is read from the windows registry.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.String getAppFolder()
      Reads the current location of the app data folder from the registry.
      java.io.File getProfilesIni()
      Get profiles.ini for the Windows Firefox profile
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WinFirefoxProfileSource

        public WinFirefoxProfileSource()
        Constructor
    • Method Detail

      • getAppFolder

        private java.lang.String getAppFolder()
        Reads the current location of the app data folder from the registry.
        Returns:
        a path to the folder.
      • getProfilesIni

        public java.io.File getProfilesIni()
                                    throws java.io.IOException
        Get profiles.ini for the Windows Firefox profile
        Specified by:
        getProfilesIni in interface FirefoxProfileSource
        Returns:
        the config folder.
        Throws:
        java.io.IOException - on error.