* @throws MalformedURLException if any sub-string is not convertible to URL.
*/
public static URL[] toUrls(File basedir, String str)
throws MalformedURLException{
final List result = new ArrayList();
PathTokenizer tok = new PathTokenizer(str);
while (tok.hasMoreTokens()) {
final String element = tok.nextToken();
result.add(toUrl(basedir, element));
}
final URL[] ret = new URL[result.size()];
result.toArray(ret);
return ret;