public void run() {
		links.add(baseURL);
		ParserGetter kit = new ParserGetter();
		HTMLEditorKit.Parser parser = kit.getParser();

		while (!links.isEmpty() && mailto.size() + urls.size() <= 2000) {
			try {
				String href = links.remove(0);
				URL url = null; 
				if (visited.contains(href) || href.startsWith("mailto")) {
					continue;
				} else if (href.startsWith("http")) {
					url = new URL(href);
				} else {
					url = new URL(new URL(baseURL), href);
				}

				InputStream in = new BufferedInputStream(url.openStream());
				InputStreamReader r = new InputStreamReader(in);
				parser.parse(r, this, true);
				visited.add(href);
			} catch (IOException ex) {
				System.err.println(ex.getMessage());
			}
		}

		System.out.println();System.out.println();
		for (String s : mailto)
			System.out.println(s);
		System.out.println();
		for (String s : urls) {
			System.out.println(s);
		}
	}