if ((page.indexOf("http://") == -1)
&& (!(page.startsWith("mailto:")))
&& (!(page.startsWith("ftp:")))
&& (!(page.startsWith("https:")))
&& (!(page.startsWith("/nge")))) {
results.add(new StringAndCountHolder(page, rs
.getInt("pageCount")));
}
} else {
if (page.indexOf('?') >= 0) {
page = page.substring(0, page.indexOf('?'));
}
if (page.indexOf('/') >= 0) {
page = page.substring(page.lastIndexOf('/') + 1);
}
if (hashResults.containsKey(page)) {
StringAndCountHolder sach = hashResults.get(page);
sach.setCount(sach.getCount() + rs.getInt("pageCount"));
} else {
StringAndCountHolder sach = new StringAndCountHolder(
page, rs.getInt("pageCount"));
results.add(sach);
hashResults.put(page, sach);
}
}