Class PathUtil
- java.lang.Object
-
- com.adobe.pdfservices.operation.internal.util.PathUtil
-
public class PathUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description PathUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetBaseName(String filePath)static StringgetExtension(String filePath)static StringgetFileName(String filePath)static StringgetFileNameWithExtension(String baseName, String targetExtension)static StringgetFullPath(String filePath)static StringgetSubPath(String directory, String subDirectory)static StringgetTemporaryDestinationPath(String sourceName, String targetExtension)Utility method to get a temporary destination path for a given file with a target formatstatic StringgetTemporaryDirectoryPath()Utility method to get the directory path of the folder where the operation results are stored temporarily
-
-
-
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 filetargetExtension- target format of the file, must be only the format characters without any '.'- Returns:
-
getFileNameWithExtension
public static String getFileNameWithExtension(String baseName, String targetExtension)
-
-