The Path Class of the com.ms.io package provides methods for checking and manipulating strings that represent paths.
public class Path { // Methods public static String append(String stPath1, String stPath2); public static String getExtension(String stPath); public static boolean hasExecExtensionType(String stPath); public static boolean isRoot(String stPath); public static boolean isValidFileChar(char ch); public static String removeBeginEndQuotes(String stPath); public static String removeTrailingSlash(String stPath); public static String validateFilename(String origfilename, char replch) throws IOException; }