Atitit..文件上传组件选型and最佳实践总结(3)----断点续传控件的实现
2014-09-30 22:34
387 查看
Atitit..文件上传组件选型and最佳实践总结(3)----断点续传控件的实现
1. 实现思路:::元插件,元设置...
1
2. 实现流程downzip,unzip,exec 1
3. Zip 文件夹结构 1
4. #---code 1
Main Html>>add link oopen a win ( in this is applet)
不个过程msg 通过js 显示到个ui上...
flashfxp(fld)
Otherftp(fld)
public void start() {
// Put your code here
System.out.println("---=================attilax start down11====================aaa");
String apppath=getApppath();
System.out.println("--getApppath:"+apppath);
String downurl=apppath+"/upx_upx.zip";
String outputDirectory="c:";
String savepath="";
try {
savepath = "c:\\upx_upx.zip";
if(!new File(savepath).exists())
websitex.down(downurl,savepath);
} catch (IOException e1) {
// attilax 老哇的爪子 1_50_52 o9t
e1.printStackTrace();
showErr(getTrace(e1));
return;
}
System.out.println("---================= upzip ====================aaa");
try {
if(!new File(outputDirectory+"\\upx_upx").exists())
ZipX.extract(savepath, outputDirectory, "gbk");
} catch (Exception e1) {
// attilax 老哇的爪子 1_54_46 o9t
e1.printStackTrace();
showErr(getTrace(e1));
return ;
}
System.out.println("---================= start boot ftp ====================aaa");
String ftp = "c:\\upx_upx\\FlashFXP_4.3.1.1969_ati\\flashfxp.exe";
if (!new File(ftp).exists()) {
ftp = "d:\\upx_upx\\FlashFXP_4.3.1.1969_ati\\flashfxp.exe";
if (!new File(ftp).exists()) ftp = "e:\\upx_upx\\FlashFXP_4.3.1.1969_ati\\flashfxp.exe";
}
try {
System.out.println("---exe:"+ftp);
Runtime.getRuntime().exec(ftp);
showInvokeOK(ftp);
} catch (IOException e) {
// attilax 老哇的爪子 h_3_53 o9s
showInvokeOK(getTrace(e));
writeFile("c:\\appE" + getUUid() + ".txt", getTrace(e), "utf-8");
try {
e.printStackTrace();
this.gx.drawString(getTrace(e), 5, 35);
System.out.println("---=====================================aaa");
} catch (Exception e2) {
e.printStackTrace();
}
}
}
1. 实现思路:::元插件,元设置...
1
2. 实现流程downzip,unzip,exec 1
3. Zip 文件夹结构 1
4. #---code 1
1. 实现思路:::元插件,元设置...
元插件的思路可以启动多个在的progrm插件...,,,元设置 可以自定义自己喜欢的ftp 客户端...Main Html>>add link oopen a win ( in this is applet)
2. 实现流程downzip,unzip,exec
Down的时候儿判断权限,c不行d,d不行走e不个过程msg 通过js 显示到个ui上...
3. Zip 文件夹结构
Cfg.txtflashfxp(fld)
Otherftp(fld)
4. #---code
*/public void start() {
// Put your code here
System.out.println("---=================attilax start down11====================aaa");
String apppath=getApppath();
System.out.println("--getApppath:"+apppath);
String downurl=apppath+"/upx_upx.zip";
String outputDirectory="c:";
String savepath="";
try {
savepath = "c:\\upx_upx.zip";
if(!new File(savepath).exists())
websitex.down(downurl,savepath);
} catch (IOException e1) {
// attilax 老哇的爪子 1_50_52 o9t
e1.printStackTrace();
showErr(getTrace(e1));
return;
}
System.out.println("---================= upzip ====================aaa");
try {
if(!new File(outputDirectory+"\\upx_upx").exists())
ZipX.extract(savepath, outputDirectory, "gbk");
} catch (Exception e1) {
// attilax 老哇的爪子 1_54_46 o9t
e1.printStackTrace();
showErr(getTrace(e1));
return ;
}
System.out.println("---================= start boot ftp ====================aaa");
String ftp = "c:\\upx_upx\\FlashFXP_4.3.1.1969_ati\\flashfxp.exe";
if (!new File(ftp).exists()) {
ftp = "d:\\upx_upx\\FlashFXP_4.3.1.1969_ati\\flashfxp.exe";
if (!new File(ftp).exists()) ftp = "e:\\upx_upx\\FlashFXP_4.3.1.1969_ati\\flashfxp.exe";
}
try {
System.out.println("---exe:"+ftp);
Runtime.getRuntime().exec(ftp);
showInvokeOK(ftp);
} catch (IOException e) {
// attilax 老哇的爪子 h_3_53 o9s
showInvokeOK(getTrace(e));
writeFile("c:\\appE" + getUUid() + ".txt", getTrace(e), "utf-8");
try {
e.printStackTrace();
this.gx.drawString(getTrace(e), 5, 35);
System.out.println("---=====================================aaa");
} catch (Exception e2) {
e.printStackTrace();
}
}
}
相关文章推荐
- Atitit..文件上传组件选型and最佳实践总结(3)----断点续传控件的实现
- Atitit..文件上传组件选型and最佳实践总结(2)----断点续传
- Atitit..文件上传组件选型and最佳实践总结(2)----断点续传
- atitit.文件上传带进度条的实现原理and组件选型and最佳实践总结O7
- atitit.文件上传带进度条的实现原理and组件选型and最佳实践总结O7
- Atitit..文件上传组件选择and最佳实践的总结(2)----HTTP
- 真正的网页在线超大文件断点续传上传控件(组件)
- Android 使用socket通信来实现文件断点续传上传
- C#实现上传文件分割,断点续传上传文件
- HTTP大文件上传断点续传控件发布-Xproer.HttpUploader5
- Atitit.列表页面and条件查询的实现最佳实践(2)------翻页 分页 控件的实现java .net php
- atitit.loading的设计与实现控件选型attilax 总结
- Atitit.列表页面and条件查询的实现最佳实践(1)------设置查询条件and提交查询and返回json数据
- XMLHttpRequest实现HTTP协议下文件上传断点续传
- XMLHttpRequest实现HTTP协议下文件上传断点续传
- HTML5文件上传组件的深度剖析、分块上传、断点续传、秒传
- atitit.手动配置列表文件的选择and 数据的层次结构 attilax总结最佳实践--yaml
- atitit.手动配置列表文件的选择and 数据的层次结构 attilax总结最佳实践--yaml
- 结合Resumable.js实现在Server端PHP支持的大文件上传、断点续传功能 推荐
- Web大文件上传断点续传控件4升级日志-Xproer.HttpUploader4