Class PathUtil


  • public class PathUtil
    extends Object
    • Constructor Detail

      • PathUtil

        public PathUtil()
    • Method Detail

      • getTemporaryDirectoryPath

        public static String getTemporaryDirectoryPath()
        Utility method to get the directory path of the folder where the operation results are stored temporarily
        Returns:
      • getTemporaryDestinationPath

        public static String getTemporaryDestinationPath​(String sourceName,
                                                         String targetExtension)
        Utility method to get a temporary destination path for a given file with a target format
        Parameters:
        sourceName - name of the file
        targetExtension - target format of the file, must be only the format characters without any '.'
        Returns:
      • getFileNameWithExtension

        public static String getFileNameWithExtension​(String baseName,
                                                      String targetExtension)
      • getExtension

        public static String getExtension​(String filePath)
      • getFileName

        public static String getFileName​(String filePath)
      • getBaseName

        public static String getBaseName​(String filePath)
      • getFullPath

        public static String getFullPath​(String filePath)
      • getSubPath

        public static String getSubPath​(String directory,
                                        String subDirectory)