Interface IBaseDirectories
-
- All Known Implementing Classes:
JosmBaseDirectories
,Plugin.PluginBaseDirectories
public interface IBaseDirectories
Interface for a provider of certain base directory locations.Depending on the OS and preferred layout, some directories may coincide.
- Since:
- 12855
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.File
getCacheDirectory(boolean createIfMissing)
Get the directory where user-specific cached content (non-essential data) should be stored.java.io.File
getPreferencesDirectory(boolean createIfMissing)
Get the directory where user-specific configuration and preferences should be stored.java.io.File
getUserDataDirectory(boolean createIfMissing)
Get the directory where user-specific data files should be stored.
-
-
-
Method Detail
-
getPreferencesDirectory
java.io.File getPreferencesDirectory(boolean createIfMissing)
Get the directory where user-specific configuration and preferences should be stored.- Parameters:
createIfMissing
- if true, automatically creates this directory, in case it is missing- Returns:
- the preferences directory
- Since:
- 12856
-
getUserDataDirectory
java.io.File getUserDataDirectory(boolean createIfMissing)
Get the directory where user-specific data files should be stored.- Parameters:
createIfMissing
- if true, automatically creates this directory, in case it is missing- Returns:
- the user data directory
- Since:
- 12856
-
getCacheDirectory
java.io.File getCacheDirectory(boolean createIfMissing)
Get the directory where user-specific cached content (non-essential data) should be stored.- Parameters:
createIfMissing
- if true, automatically creates this directory, in case it is missing- Returns:
- the cache directory
- Since:
- 12856
-
-