source: josm/trunk/src/org/openstreetmap/josm/spi/preferences/IBaseDirectories.java

Last change on this file was 12856, checked in by bastiK, 8 years ago

see #15229 - add parameter to base directory methods

File size: 1.3 KB
RevLine 
[12855]1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.spi.preferences;
3
4import java.io.File;
5
6/**
7 * Interface for a provider of certain base directory locations.
8 * <p>
9 * Depending on the OS and preferred layout, some directories may coincide.
10 * @since 12855
11 */
12public interface IBaseDirectories {
13
14 /**
15 * Get the directory where user-specific configuration and preferences
16 * should be stored.
[12856]17 * @param createIfMissing if true, automatically creates this directory,
18 * in case it is missing
[12855]19 * @return the preferences directory
[12856]20 * @since 12856
[12855]21 */
[12856]22 File getPreferencesDirectory(boolean createIfMissing);
[12855]23
24 /**
25 * Get the directory where user-specific data files should be stored.
[12856]26 * @param createIfMissing if true, automatically creates this directory,
27 * in case it is missing
[12855]28 * @return the user data directory
[12856]29 * @since 12856
[12855]30 */
[12856]31 File getUserDataDirectory(boolean createIfMissing);
[12855]32
33 /**
34 * Get the directory where user-specific cached content (non-essential data)
35 * should be stored.
[12856]36 * @param createIfMissing if true, automatically creates this directory,
37 * in case it is missing
[12855]38 * @return the cache directory
[12856]39 * @since 12856
[12855]40 */
[12856]41 File getCacheDirectory(boolean createIfMissing);
[12855]42}
Note: See TracBrowser for help on using the repository browser.