GithubHelp home page GithubHelp logo

java-multithread-downloader's Introduction

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

java-multithread-downloader's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.