Package uk.ac.starlink.util.gui
Class StoreFileUtils
- java.lang.Object
-
- uk.ac.starlink.util.gui.StoreFileUtils
-
public class StoreFileUtils extends java.lang.Object
Class of static members that provide utility functions for locating configuration files.- Version:
- $Id$
- Author:
- Peter W. Draper
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.File
getConfigDirectory(java.lang.String applicationName)
The name of the directory used for storing configuration information.static java.io.File
getConfigFile(java.lang.String applicationName, java.lang.String name)
Construct the proper name of a file stored in the configuration directory.
-
-
-
Method Detail
-
getConfigDirectory
public static java.io.File getConfigDirectory(java.lang.String applicationName)
The name of the directory used for storing configuration information. This directory is created if it doesn't exist already.- Parameters:
applicationName
- name of the application, used to generate the top-directory name
-
getConfigFile
public static java.io.File getConfigFile(java.lang.String applicationName, java.lang.String name)
Construct the proper name of a file stored in the configuration directory.- Parameters:
applicationName
- name of the application (same as forgetConfigDirectory(java.lang.String)
)name
- the name of the file to be stored/located in the the configuration directory.
-
-