Package net.sf.gridarta.utils
Class ConfigFileUtils
- java.lang.Object
-
- net.sf.gridarta.utils.ConfigFileUtils
-
public class ConfigFileUtils extends java.lang.ObjectLoader for loading resources the user's home directory.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull java.io.FilegetHomeDir()Returns the user's home directory.static @NotNull java.io.FilegetHomeFile(@NotNull java.lang.String filename)Return the filename to use when dealing with this application's and current users' home directory.
-
-
-
Method Detail
-
getHomeFile
@NotNull public static @NotNull java.io.File getHomeFile(@NotNull @NotNull java.lang.String filename)Return the filename to use when dealing with this application's and current users' home directory. For example, if called like thisCResourceLoader.getHomeFile("file");will return something like /home/user/.gridarta/file under Linux.- Parameters:
filename- the name of the requested file- Returns:
- the full to user home directory, appended with application directory and the filename.
-
getHomeDir
@NotNull public static @NotNull java.io.File getHomeDir()
Returns the user's home directory.- Returns:
- the home directory
-
-