Here you can find the source of buildURLForPath(String[] _path)
public static String buildURLForPath(String[] _path)
//package com.java2s; //License from project: Open Source License public class Main { public static String buildURLForPath(String[] _path) { if (_path == null) return null; int len = _path.length; if (len == 0) return ""; StringBuilder url = new StringBuilder(len * 16); for (int i = 0; i < len; i++) { if (i != 0) url.append("/"); // TODO: escape HTML url.append(_path[i]);/*from ww w .j av a 2 s. c o m*/ } return url.toString(); } }