reader = new ReadTag(theURL);
if (reader != null) reader.close();
ArrayList al = new ArrayList(); String tag; while ((tag = reader.nextTag()) != null) { for (int i=0; i<wantTags.length; i++) { if (tag.startsWith(wantTags[i])) { al.add(tag); continue; // optimization } } } return al;
String theURL = argv.length == 0 ? "http://localhost/" : argv[0]; GetURLs gu = new GetURLs(theURL); ArrayList urls = gu.getURLs(); Iterator urlIterator = urls.iterator(); while (urlIterator.hasNext()) { System.out.println(urlIterator.next()); }