Home Freemagazine Issue3 Tips 'n' Tricks
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

Tips 'n' Tricks

Advertisement
This Java program lets you download files from one or more URLs and save them in the directory where you want.

Tips 'n' Tricks

       

 

  1. Download files data from many URLs
    This Java program lets you download files from one or more URLs and save them in the directory where you want. This program takes destination directory for the files to save as first command line argument and URLs for the files as next command line arguments separated by space. Java provides URLConnection class that represents a communication link between the application and a URL. Invoking the openConnection method on a URL creates URLConnection object. Now get InputStream object from that connection and read the data. Finally write the data to the local file.

For more information at:

http://www.javajazzup.com/issue3/page65.shtml

 

       

Advertisement

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: October 8, 2010

Ask Questions?    Discuss: Tips 'n' Tricks  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com