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

📄 systemouthttptoolcallback.java

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

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

/**
 * Simple HttpTool callback that prints information on stdout
 *
 * @author Daniel Matuschek <daniel@matuschek.net>
 * @version $Id: SystemOutHttpToolCallback.java,v 1.1 2001/04/20 11:53:23 matuschd Exp $
 */
public class SystemOutHttpToolCallback 
  implements HttpToolCallback {

  int size=0;

  public void setHttpToolDocUrl(String url) {
    System.out.println("URL: "+url);
  }

  public void setHttpToolDocSize(int size) {
    this.size=size;
  }

  public void setHttpToolDocCurrentSize(int size) {
    System.out.print(size+" of "+this.size+"\r");
  }

  public void setHttpToolStatus(int status) {
  }
}

⌨️ 快捷键说明

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