📄 test.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -