コード例 #1
0
 public static String getFilePath(String completePath) {
   completePath = Filters.replaceChar(completePath, '\\', '/');
   return completePath.substring(0, completePath.lastIndexOf('/'));
 }
コード例 #2
0
 public static String getFileNameSuffix(String completePath) {
   completePath = Filters.replaceChar(completePath, '\\', '/');
   return completePath.substring(completePath.lastIndexOf('.') + 1);
 }