ResourceParsedErrorEvent.java
上传用户:qing5858
上传日期:2015-10-27
资源大小:6056k
文件大小:1k
源码类别:

搜索引擎

开发平台:

Java

  1. package net.javacoding.jspider.core.event.impl;
  2. import net.javacoding.jspider.core.SpiderContext;
  3. import net.javacoding.jspider.core.event.CoreEventVisitor;
  4. import java.net.URL;
  5. /**
  6.  *
  7.  * $Id: ResourceParsedErrorEvent.java,v 1.3 2003/02/28 17:39:04 vanrogu Exp $
  8.  *
  9.  * @author G黱ther Van Roey
  10.  */
  11. public class ResourceParsedErrorEvent extends URLRelatedBaseEventImpl {
  12.     protected Throwable error;
  13.     public ResourceParsedErrorEvent(SpiderContext context, URL url, Throwable error) {
  14.         super(context, url);
  15.         this.error = error;
  16.     }
  17.     public String toString() {
  18.         return "resource parse error : " + url;
  19.     }
  20.     public void accept(URL url, CoreEventVisitor visitor) {
  21.         visitor.visit(url, this);
  22.     }
  23. }