public static String pathToString(String dim,String[] path){
  String[] fullPath=new String[1 + path.length];
  fullPath[0]=dim;
  System.arraycopy(path,0,fullPath,1,path.length);
  return pathToString(fullPath,fullPath.length);
}

public static String pathToString ( String dim , String [ ] path ) { String [ ] fullPath = new String [ 1 + path . length ] ; fullPath [ 0 ] = dim ; System . arraycopy ( path , 0 , fullPath , 1 , path . length ) ; return pathToString ( fullPath , fullPath . length ) ; }
turns a dim + path into an encoded string .
