com.groupdocs.viewer.utils

Class PathUtils



  • public class PathUtils
    extends Object
    The type Path.
    • Method Detail

      • changeExtension

        public static String changeExtension(String path,
                             String extension)
        Change extension string.
        Parameters:
        path - the path
        extension - the extension
        Returns:
        the string
      • combine

        public static String combine(String... params)
        Combine string.
        Parameters:
        params - the params
        Returns:
        the string
      • combine

        public static String combine(String path1,
                     String path2)
        Combine string.
        Parameters:
        path1 - the path 1
        path2 - the path 2
        Returns:
        the string
      • createDirectoryIfNotExists

        public static void createDirectoryIfNotExists(String folderPath)
      • getFileName

        public static String getFileName(String path)
        Gets file name.
        Parameters:
        path - the path
        Returns:
        the file name
      • getInvalidFileNameChars

        public static char[] getInvalidFileNameChars()
        Get invalid file name chars char [ ].
        Returns:
        the char [ ]
      • getPathRoot

        public static String getPathRoot(String path)

        getPathRoot.

        Parameters:
        path - a String object.
        Returns:
        a String object.
      • isPathRooted

        public static boolean isPathRooted(String path)

        isPathRooted.

        Parameters:
        path - a String object.
        Returns:
        a boolean.