public class GlimpseDataPaths extends Object
If a Glimpse module needs to store module-specific data, it should have its own module-
specific directories, and should provide a module-specific
DataPaths class that
contains the paths of those directories. Module-specific dirs should be subdirs under
The value of each
GlimpseDataPaths path is set based on:
The "shared" dir is intended to allow users to share data. It should generally be expected to be read-only.
The "user" dirs are user-specific, and can generally be assumed to be writable. Typically, if data exists in both the user dir and the shared dir, the user dir should take precedence, because the user has more control over it than over the shared dir.
The "cache" dir is intended to hold data that a program can generate if it does not already exist. Cache dirs can be freely deleted when the program is not running.
The "data" dirs are intended to hold data which cannot be regenerated easily.
|Modifier and Type||Field and Description|
Parent directory for permanent data (not easy to regenerate) that can be read by multiple users.
Parent directory for cache data (easy to regenerate) that can be read and written by the current user.
Parent directory for permanent data (not easy to regenerate) that can be read and written by the current user.
|Constructor and Description|
|Modifier and Type||Method and Description|
public static final File glimpseSharedDataDir
public static final File glimpseUserDataDir
public static final File glimpseUserCacheDir
Copyright © 2018 Metron, Inc.. All rights reserved.