在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:daimajia/java-multithread-downloader开源软件地址:https://github.com/daimajia/java-multithread-downloader开源编程语言:Java 100.0%开源软件介绍: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
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论