Klasse Paths

java.lang.Object
de.srsoftware.tools.Paths

public class Paths extends Object
Utilities for working with application configuration
  • Methodendetails

    • configDir

      public static Path configDir(String applicationName)
      get a path to the config dir of a given application
      Parameter:
      applicationName - the name of the application
      Gibt zurück:
      <user.home>/.config/<applicationName>
    • configDir

      public static Path configDir(Class clazz)
      get a path to the config dir of a given application
      Parameter:
      clazz - the application's main class
      Gibt zurück:
      <user.home>/.config/<clazz.simplename>
    • configDir

      public static Path configDir(Object clazz)
      get a path to the config dir of a given application
      Parameter:
      clazz - the application's main class
      Gibt zurück:
      <user.home>/.config/<clazz.simplename>
    • extension

      public static String extension(File file)
      get the extension part of a file name
      Parameter:
      file - the file to tokenize
      Gibt zurück:
      the token after the last dot or the whole string if the filename contains no dot