Exemplo n.º 1
0
 public static String getFilePath(String completePath) {
   completePath = Filters.replaceChar(completePath, '\\', '/');
   return completePath.substring(0, completePath.lastIndexOf('/'));
 }
Exemplo n.º 2
0
 public static String getFileNameSuffix(String completePath) {
   completePath = Filters.replaceChar(completePath, '\\', '/');
   return completePath.substring(completePath.lastIndexOf('.') + 1);
 }