demo你好

package com.sk.system.datacollect;

import java.util.List;

import org.jsoup.nodes.Document;

import com.sk.system.datacollect.exception.CollectException;

/**

  • 采集器接口

  • @author likun

  • /
    public interface ICollector {
    public final int timeOut = 5000;
    /
    *

    • 获取一个url的的内容
    • @param url
    •        采集的地址
      
    • @param timeOut
    •        超时时间
      
    • */
      public String getUrlHtml(String url, int timeOut) throws CollectException;

    /**

    • 获取一个url的document文档
    • @param url
    •        采集的地址
      
    • @param timeOut
    •        超时时间
      
    • */
      public Document getDocument(String url, int timeOut)
      throws CollectException;
      

    /**

    • 通过url采集数据集合
      */
      public Object collectData(String url, int timeOut) throws CollectException;

}

你可能感兴趣的:(demo,ajva)