Ejemplo n.º 1
0
 static String[] path(String scriptLine) {
   String[] line = scriptLine.split(",");
   String[] path = new String[line.length - 1];
   System.arraycopy(line, 1, path, 0, line.length - 1);
   for (int indexOfPath = 0; indexOfPath < path.length; indexOfPath++) {
     path[indexOfPath] =
         Script.unescapeSpecialCharacters(Script.unescapeNewLines(path[indexOfPath]));
   }
   return path;
 }
Ejemplo n.º 2
0
 public static String pathString(String[] path, String delimiter, String surrounding) {
   String p = "";
   for (int i = 0; i < path.length; i++) {
     p +=
         surrounding
             + Script.escapeSpecialCharacters(Script.escapeNewLines(path[i]))
             + surrounding
             + delimiter;
   }
   return p.substring(0, p.length() - 1);
 }