信的规则,通过因特网传送万维网文档的数据传送协议。HTTP是一种常用的网络协议。用户如果想要上网,最基本的就是要遵循HTTP协议。
此次毕业设计采用了JAVA程序开发语言和eclipse开发工具。本课题重点介绍了在HTTP网络环境下实现多线程以及下载过程中的断点续传的原理和方法,有助于用户对下载器有更深层次的了解和更好的使用下载工具。
关键词:HTTP;下载器;Java;多线程
ABSTRACT
In today's internet times, the downloader is the necessary tools for people. Now there are a lot of mainstream downloaders, such as the thunder,EasyMule,qq whirlwind and so on. Undoubtedly, all of these downloaders used the Multi-thread. The so-called thread program is the smallest unit of execution flow. Thread can be simple to understand as a download channel. So, single thread is to download with a single download channel, and downloading with multi-thread is to download with a lot of download channel at the same time. When a user selects a multi-thread download, download device will download resources according to the number of threads . Then download resources to local place at the same time. Obviously Multi-thread take a higher CPU utilization than single thread, so it can improve download speed.
HTTP namely hypertext transfer protocol, it is a kind of detailed communication regulations between the world wide web server and browser, it is a data transfer protocol which can through the Internet transmitting the world wide web document transmission. HTTP is a common network protocol. If you want to get to the Internet, the most basic is to follow the HTTP protocol.
I use java program development language and eclipse development tool in my graduation design. This subject mainly introduces the principle and method to realize the multi-thread download process and break point transmission under HTTP network environment .It can help users to have a deeper understanding about downloader and how to use download tools better.
Keywords: HTTP;downloader; Java; Multi-thread
目录
第一章 引言 - 1 -
1.1 项目背景 - 1 -
1.2 编写目的 - 1 -
1.3 论文的主要内容 - 1 -
第二章 应用开发相关技术和理论 - 1 -
2.1 HTTP - 1 -
2.1.1 Http简介 - 1 -
2.1.2 Http请求和响应 - 1 -
2.2 JAVA - 1 -
2.2.1 Java简介 - 1 -
2.2.2 Swing简介 - 1 -
2.3 线程和多线程 - 1 -
2.3.1 线程的基本概念 - 1 -
2.3.2 多线程的优点 - 1 -
2.3.3 Java线程的实现 - 1 -
第三章 系统分析与设计 - 1 -
3.1 功能需求 - 1 -
3.2 系统功能模块的划分 - 1 -
3.3 系统流程图 - 1 -
3.4 系统结构用例图 - 1 -
4.1 开发环境构建 - 1 -
4.1.1 JDK和Eclipse的安装 - 1 -
4.2 MainFrame模块设计 - 1 -
4.2.1 MainFrame模块结构 - 1 -
4.2.2 主界面设计 - 1 -
4.2.3 MainFrame组件监听事件 - 1 -
4.3 GlobalData模块设计 - 1 -
4.4 DownTableModel模块设计 - 1 -
4.4.1 模块UI设计 - 1 -
4.4.2 模块数据动态更新 - 1 -
4.5 NewDownload模块设计 - 1 -
4.5.1 模块流程分析 - 1 -
4.5.2 模块UI设计 - 1 -
4.5.3 NewDownload监听事件 - 1 -
4.6 Download模块的设计 - 1 -
4.6.1 模块流程分析 - 1 -
4.6.2 模块详细设计 - 1 -
4.7 DownloadThread模块的设计 - 1 -
4.8 LoadProperty模块设计 - 1 -
4.8.1 模块流程分析 - 1 -
4.8.2 LoadProperty模块实现 - 1 -
4.9 悬浮窗模块设计 - 1 -
4.9.1 悬浮窗UI设计 - 1 -
4.9.2 悬浮窗主件监听事件 - 1 -
第五章 结论 - 1 -
参 考 文 献 - 1 -
致 谢 1
第一章 引言
1.1 项目背景
目前国内下载器有很多种,有基于Http下载的,也有基于P2P下载的(最典型的就是电驴)。HTTP 是 Hyper Text Transportation Protocol(超文本传输协议)的缩写,它是