⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 urlcheck.java

📁 真正的网络爬虫的源代码啊,希望大家好好阅读,写出心得体会啊
💻 JAVA
字号:
package net.matuschek.spider;

/*********************************************
    Copyright (c) 2001 by Daniel Matuschek
*********************************************/

import java.net.URL;

/**
 * This interface defines a simple method that allows another
 * object (usually this will be a WebRobot) to test, if a given
 * URL is acceptable (e.g. for the WebRobot this means, it should
 * retrieve the URL).
 *
 * @author Daniel Matuschek
 * @version $Revision: 1.3 $
 */
public interface URLCheck  {

  /**
   * Tests if the given URL is acceptable. This method is designed
   * for a WebRobot to do additional tests, if it should retrieve a
   * URL
   * @see WebRobot
   */
  boolean checkURL(URL u);
  
  /**
   * Tests if the given URL is acceptable for processing.
   * This method is designed for a WebRobot to do additional tests, if it should
   * process a URL
   * @see WebRobot
   */
  boolean checkURLForProcessing(URL u);
} // URLCheck

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -