test.java
来自「实现java断点续传多线程处理原代码,三种形式下载,」· Java 代码 · 共 37 行
JAVA
37 行
package com.test.file;
import com.download.SiteFileFetch;
import com.download.SiteInfoBean;
/**
* 测试用例
* @author yeqc
* 2008-06-28
*
*/
public class Test {
public Test()
{
try{
String url="http://localhost/xx/weblogic60b2_win.exe";
String filePath="f:\\temp";
String fileName="weblogic60b2_win.exe";
int threadid=5;
SiteInfoBean bean = new SiteInfoBean(url,filePath,fileName,threadid);
SiteFileFetch fileFetch = new SiteFileFetch(bean);
fileFetch.start();
}
catch(Exception e){
e.printStackTrace ();}
}
public static void main(String[] args)
{
new Test();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?