Class ConfigFileUtils


  • public class ConfigFileUtils
    extends java.lang.Object
    Loader 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.File getHomeDir()
      Returns the user's home directory.
      static @NotNull java.io.File getHomeFile​(@NotNull java.lang.String filename)
      Return the filename to use when dealing with this application's and current users' home directory.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 this CResourceLoader.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