}
spider = new Spider(document, jxlDocument, httpCache, cookieStore, maxConnections,
Spider.DEFAULT_MAX_PARSE_THREADS, httpTimeout);
try {
for (Iterator iterator = spiderListenerList.iterator(); iterator.hasNext();) {
SpiderListener spiderListener = (SpiderListener) iterator.next();
spider.addSpiderListener(spiderListener);
}
if (!running) {
break;
}
spider.run();
} finally {
for (Iterator iterator = spiderListenerList.iterator(); iterator.hasNext();) {
SpiderListener spiderListener = (SpiderListener) iterator.next();
spider.removeSpiderListener(spiderListener);
}
}
boolean success = false;