searchLink(list, fragment.getChildNodes());
}
String home = browser.getUrl();
URLUtils urlUtils = new URLUtils();
URL url = null;
try {
url = new URL(home);
} catch (Exception e) {
}
if(list.size() > 0) {
for(int i = 0; i < list.size(); i++) {
list.set(i, urlUtils.createURL(url, list.get(i)));
}
return list.toArray(new String[list.size()]);
}
String link = BrowserMenu.getLink(element);
if(link == null) return new String[0];
link = urlUtils.createURL(url, link);
return new String[]{link};
}