01: package net.matuschek.http;
02:
03: /*********************************************
04: Copyright (c) 2001 by Daniel Matuschek
05: *********************************************/
06:
07: /**
08: * Simple HttpTool callback that prints information on stdout
09: *
10: * @author Daniel Matuschek <daniel@matuschek.net>
11: * @version $Id: SystemOutHttpToolCallback.java,v 1.1 2001/04/20 11:53:23 matuschd Exp $
12: */
13: public class SystemOutHttpToolCallback implements HttpToolCallback {
14:
15: int size = 0;
16:
17: public void setHttpToolDocUrl(String url) {
18: System.out.println("URL: " + url);
19: }
20:
21: public void setHttpToolDocSize(int size) {
22: this .size = size;
23: }
24:
25: public void setHttpToolDocCurrentSize(int size) {
26: System.out.print(size + " of " + this .size + "\r");
27: }
28:
29: public void setHttpToolStatus(int status) {
30: }
31: }
|