• Stars
    star
    267
  • Rank 153,621 (Top 4 %)
  • Language
    Java
  • Created over 11 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Java multithread download library

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

More Repositories

1

AndroidViewAnimations

Cute view animation collection.
Java
12,422
star
2

AndroidSwipeLayout

The Most Powerful Swipe Layout!
Java
12,373
star
3

NumberProgressBar

A beautiful, slim Android ProgressBar.
Java
6,066
star
4

AndroidImageSlider

An amazing and convenient Android image slider.
Java
5,629
star
5

AndroidViewHover

An elegant way to show your menu or messages.
Java
3,208
star
6

AnimationEasingFunctions

Android Animation Easing Functions. Let's make animation more real!
Java
2,469
star
7

AnimeTaste

Taste global original animation
Java
1,624
star
8

EverMemo

Fast Record,Organize,and Share. The android memo app you will deeply love. ❤
Java
798
star
9

bleed-baidu-white

榨干百度网盘的剩余价值
Python
466
star
10

revenge

联手对抗臭长广告
JavaScript
307
star
11

little-bear-dictionary

This will be the most powerful android dictionary!!!
Java
274
star
12

huntscreens

Take screenshots of each new project on Producthunt, YC, and Indiehackers, explore with Ease.
TypeScript
142
star
13

social-auth-simulator

模拟登陆->授权->获取access_token,目前支持人人、新浪微博、腾讯微博
Python
109
star
14

Gank.IO

Gank.IO source code.
23
star
15

EverMemo-EverNote

Small modifications for EverMemo
Java
14
star
16

Learn-Algorithm

拖延症患者学习算法小分队
5
star
17

dictionary

Click read me md 's redirect to know more
5
star
18

daimajia

My Intro.
4
star
19

todo

HTML
4
star
20

railway-pgvector

Dockerfile
3
star
21

SAE_wordpress_blog

SAE上的wordpress博客
PHP
3
star
22

old-version-little-bear-dictionary

Java
2
star
23

StoryTimeline

JavaScript
2
star
24

tp

1
star
25

little-bear-dictionary-dependency

All the dependencies of https://github.com/xuanqinanhai/little-bear-dictionary
1
star