KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > matuschek > http > SystemOutHttpToolCallback


1 package net.matuschek.http;
2
3 /*********************************************
4     Copyright (c) 2001 by Daniel Matuschek
5 *********************************************/

6
7 /**
8  * Simple HttpTool callback that prints information on stdout
9  *
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
14   implements HttpToolCallback {
15
16   int size=0;
17
18   public void setHttpToolDocUrl(String JavaDoc url) {
19     System.out.println("URL: "+url);
20   }
21
22   public void setHttpToolDocSize(int size) {
23     this.size=size;
24   }
25
26   public void setHttpToolDocCurrentSize(int size) {
27     System.out.print(size+" of "+this.size+"\r");
28   }
29
30   public void setHttpToolStatus(int status) {
31   }
32 }
33
Popular Tags