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

📄 contextualurl.java

📁 一个网络爬虫
💻 JAVA
字号:
package org.flaviotordini.arale;

import java.util.*;
import java.net.*;

/**
 *  Represents an URL with additional context information.
 *
 *@author     Flavio Tordini
 *@created    28 novembre 2001
 */
public class ContextualURL {

    /**
     *  the URL
     *
     *@since    28 novembre 2001
     */
    public URL url;

    /**
     *  the father URL
     *
     *@since    28 novembre 2001
     */
    public URL context;

    /**
     *  the number of domain changes since the "homepage"
     *
     *@since    28 novembre 2001
     */
    public int domainDepth;

    /**
     *  URL changed according to user settings. (mainly for dynamic files)
     */
    public URL transformedURL;

    /**
     *  url should be scanned for new links.
     */
    public boolean scannable;

    /**
     *  url should be downloaded to disk.
     */
    public boolean downloadable;

    /**
     *  url has to be transformed.
     */
    public boolean renamable;

    /**
     *  The string found on the referring resource
     */
    public String originalLink;

    /**
     *  Description of the Field
     */
    public String token;


    /**
     *  Constructor for the ContextualURL object
     *
     *@param  context      father url
     *@param  url          url
     *@param  domainDepth
     *@since               28 novembre 2001
     */
    public ContextualURL(URL context, URL url, int domainDepth) {
        this.context = context;
        this.url = url;
        this.domainDepth = domainDepth;
    }

}

⌨️ 快捷键说明

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