This project is made for our academic projct of Networking lab. It is the project which is described in Java- The Complete Reference. But some extra features are added.
JAVA- The Complete Reference is one of the nicest books I've ever read for JAVA language by Herbert Schildt. There is a project in the last chapter named Download Manager. It is a nice project but has some limitations. For individual download, it creates a separate thread. But for a particular file download, it uses only one thread. If we can download a file using multiple threads, wouldn't be it nice? That's the project I did in my Networking Lab.
We all know that file is downloaded byte by byte. So, I save those bytes from the server in different ArrayList from different threads. After downloading the last byte, I merged those downloaded bytes from ArrayList sequentially. Finally, the File to be Downloaded is made. Here is the screenshot of those bytes of the downloading file.
After finishing the download, the file is saved on the destination folder.
You need to install JAVA for running this project. Please check by typing java -version
if JAVA is installed or not.
Go to Download_Manager/dist folder or click the link https://github.com/nowshad-hasan/Download_Manager/tree/master/dist.
Download the Download_Manager.jar file
and run java -jar Download_Manager.jar
in terminal or cmd.