Skip to content

TFdream/FileDownloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

FileDownloader

File download library for Java and Android, simple to use.

Quick Start


public class FileDownloaderTest {

	public static void main(String[] args) {

		FileDownloader fileDownloader = FileDownloader.getInstance();
		FileDownloaderConfiguration configuration = FileDownloaderConfiguration
				.newBuilder()
				.readTimeout(10*1000)
				.connectTimeout(10*1000)
				.corePoolSize(4)
				.downloadDestinationDir(new File("D:/Download"))
				.build();
		fileDownloader.init(configuration);

		String url = "http://dldir1.qq.com/qqfile/qq/QQ7.9/16621/QQ7.9.exe";;
		String filename = "QQ7.9.exe";

		boolean result = fileDownloader.download(url, filename);

		System.out.println("download result:"+result);

		fileDownloader.destroy();	//close it when you not need
	}
}

About

File download library for Java and Android.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages