Giter Club home page Giter Club logo

mutilthreaddownloader's Introduction

MutilThreadDownloader

JAVA实现的多线程http下载和单线程ftp下载,并支持断点下载

针对http下载可以自定义下载线程,针对ftp下载下载线程为1,可以自定义重新下载重试次数

断点续传原理:

  1. 首先从服务器请求文件的大小
    1.1 如果本地保存的断点文件记录的大小和服务器的不一致,那么清除断点信息,重新下载
    1.2 如果本地保存的断点文件记录的文件大小和服务器的一致,那么检查服务器的文件时间戳,如果不一致,重新下载
    1.3 如果文件和大小都一致,那么读取断点信息,初始化线程个数,从断点处下载
  2. NoCheckpointInfo针对的是不需要保存断点信息的场景

mutilthreaddownloader's People

Contributors

burkun avatar

Watchers

James Cloos avatar  avatar

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.