Introduction - If you have any usage issues, please Google them yourself
private void extractLinks(URL pageURL, Parser parser) {
Map<String, String> links = new HashMap<String, String>()
try {
NodeFilter filter = new NodeClassFilter(LinkTag.class)
NodeList list = parser.extractAllNodesThatMatch(filter)
for (int i = 0 i < list.size() i++) {
LinkTag n = (LinkTag) list.elementAt(i)