Class KdeSettingsParser
java.lang.Object
com.github.markusbernhardt.proxy.search.desktop.kde.KdeSettingsParser
Parser for the KDE settings file. The KDE proxy settings are stored in the
file:
.kde/share/config/kioslaverc
in the users home directory.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate File
Finds all the KDE network settings file.private File
findSettingsFile
(File settingsFile) Internal method to test if the settings file is at the given place.Parse the settings file and extract all network.proxy.* settings from it.
-
Field Details
-
settingsFile
-
-
Constructor Details
-
KdeSettingsParser
public KdeSettingsParser()Constructor -
KdeSettingsParser
Constructor- Parameters:
settingsFile
- the settings file to use.
-
-
Method Details
-
parseSettings
Parse the settings file and extract all network.proxy.* settings from it.- Returns:
- the parsed properties.
- Throws:
IOException
- on read error.
-
findSettingsFile
Finds all the KDE network settings file.- Returns:
- a file or null if does not exist.
-
findSettingsFile
Internal method to test if the settings file is at the given place.- Parameters:
settingsFile
- the path to test.- Returns:
- the file or null if it does not exist.
-