Skip to content

githubyong/java-multithread-downloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

java-multithread-downloader

###What?

Java-multithread-downloader is a java download library which supports multithread.

###How?

//Step0: we need a download manager

DownloadManager downloadManager = DownloadManager.getInstance(); 

//Step1: we need construct a mission

String qqApp = "http://dldir1.qq.com/qqfile/qq/QQ2013/QQ2013Beta2.exe";
String saveDirectory = "";
String newName = "qqApp.exe"

DownloadMission mission = new DownloadMission(qQString,saveDirectory, newName);

//Step2: deliver this mission to manager

downloadManager.addMission(mission);

//Step3: Let's start

downloadManager.start();

###I'm sure, it's convinient

There are some useful method you can use:

mission.getReadableSize() //get mission target file size (which is readable end with KB/MB/GB…)

mission.getReadableSpeed() //get mission's readable downloading speed

mission.getReadableAverageSpeed() //get avarage download speed

mission.getReadableMaxSpeed() //get max download speed
 
mission.getActiveTheadCount() // get mission's downloading thread count

mission.isFinished() //judge if a mission is finished

mission.getTimePassed() //get download time

mission.pause() //pause this mission ,and it will automatically resume when you start again. 

###Notice

This library is still under construction and I need your help. if you get some bugs,please feel free to issue or Email me.

###Licence

MIT

###About me

I am a common senior student in China 22 years old. Good at Php,Java,Android,NodeJS. I just want to make a good app. If there is any intern opportunity and you think I'm suitable, welcome to email me: Email Me

About

Java multithread download library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%