com.groupdocs.viewer.common

Class Path



  • public class Path
    extends Object
    The type Path.
    Author:
    Aleksey Permyakov (24.10.2016)
    • Constructor Detail

      • Path

        public Path()
    • Method Detail

      • getInvalidFileNameChars

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

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

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

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

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

        public static boolean isPathRooted(String path)
      • getPathRoot

        public static String getPathRoot(String path)