Welcome![Sign In][Sign Up]
Location:
Downloads WEB Code JSP/Java
Title: src Download
 Description: Get to download the file length, head and other related information with URLConnection, and sets the response header information. And obtain input stream through URLConnection, specify the file into blocks each open a separate thread finishes reading the data written. Download the file to read the information flow through the input, then the read information in RandomAccessFile random write to a local file. At the same time, each thread writes data file pointer is written length of the data needs to be stored in a temporary file. So that when this download is not completed, the next time you download a downloaded file is read on the length the file, and then continue to the last position and then start the download. And writes this length to download this file.
 Downloaders recently: [More information of uploader bpx47]
 To Search:
File list (Check if you may need any files):
 

src
...\com
...\...\hoo
...\...\...\download
...\...\...\........\BatchDownloadFile.java
...\...\...\........\DownloadFile.java
...\...\...\........\SaveItemFile.java
...\...\...\entity
...\...\...\......\DownloadInfo.java
...\...\...\test
...\...\...\....\TestDownloadMain.java
...\...\...\util
...\...\...\....\DownloadUtils.java
...\...\...\....\LogUtils.java
    

CodeBus www.codebus.net