The Robot Application Programming Interface Delegate Project
RAPID Logo

PrefUtil Class Reference

utility for creating/managing a preferences dir More...

Collaboration diagram for PrefUtil:

List of all members.

Static Public Member Functions

static File getPrefDir (String relativePath) throws IOException
static File getRootPrefDir () throws IOException
 Get the root preference dir (~/.nasa).
static File getHomeDir () throws IOException
 Get the home directory of the user.

Static Public Attributes

static final String PREF_DIR_NAME = ".nasa"

Detailed Description

Author:
mallan

Member Function Documentation

static File getHomeDir ( ) throws IOException [static]

The home directory is determined by the HOME environment variable, or if that is empty, the java property "user.home" is used

static File getPrefDir ( String  relativePath) throws IOException [static]

Here is the call graph for this function:

static File getRootPrefDir ( ) throws IOException [static]

If it does not exist, it will be created.

Returns:
Exceptions:
IOException

Here is the call graph for this function:


Member Data Documentation

final String PREF_DIR_NAME = ".nasa" [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines