List of utility methods to do Path Create
String | getNameAppendStr(String path, String Str) get Name Append Str int i = path.lastIndexOf("."); if (i == -1 || i == 0) return path + Str; return path.substring(0, i) + Str + path.substring(i, path.length()); |
String | getParentNameofPath(String path) get Parent Nameof Path if (path.equals("/")) { return null; if (path.endsWith("/")) { path = path.substring(0, path.length() - 1); int index = path.lastIndexOf('/'); if (path.length() == 1) { ... |