rabbit.client.sample
Class WGet

java.lang.Object
  extended by rabbit.client.sample.WGet

public class WGet
extends Object

A class to download a set of resources. Given a set of urls this class will download all of them concurrently using a standard ClientBase. This is mostly an example of how to use the rabbit client classes.

Author:
Robert Olofsson

Constructor Summary
WGet()
          Create a new WGet that can be used to download resources.
 
Method Summary
 void get(String url)
          Add an url to the set of urls to be downloaded
 void get(String[] urls)
          Add a set of urls to download.
static void main(String[] args)
          Download all urls given in the args arrays.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WGet

public WGet()
     throws IOException
Create a new WGet that can be used to download resources.

Throws:
IOException
Method Detail

main

public static void main(String[] args)
Download all urls given in the args arrays.


get

public void get(String[] urls)
         throws IOException
Add a set of urls to download.

Throws:
IOException

get

public void get(String url)
         throws IOException
Add an url to the set of urls to be downloaded

Throws:
IOException