Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Freemagazine Issue3 Tips 'n' Tricks

Related Tutorials


 
 

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

 

       

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



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

Related Tutorials

Discuss: Tips 'n' Tricks  

Post your Comment


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