|
@ -96,24 +96,24 @@ public class VideoTest { |
|
|
*/ |
|
|
*/ |
|
|
public static void main(String[] args) throws Exception { |
|
|
public static void main(String[] args) throws Exception { |
|
|
|
|
|
|
|
|
// 指定资源地址,下载文件测试
|
|
|
//指定资源地址,下载文件测试
|
|
|
// downloadFile("http://1258473962.vod2.myqcloud.com/1e124671vodcq1258473962/76557f735285890810478037694/VCj25SXUgFsA.mp4", "D:/temp/");
|
|
|
// downloadFile("http://1258473962.vod2.myqcloud.com/1e124671vodcq1258473962/76557f735285890810478037694/VCj25SXUgFsA.mp4", "D:/temp/");
|
|
|
// List<Object[]> objects = PoiUtil.readExce(new File("C:\\Users\\逗\\Desktop\\跳绳比赛选手证件照.xlsx"), 0, null, 0, false);
|
|
|
List<Object[]> objects = PoiUtil.readExce(new File("C:\\Users\\逗\\Desktop\\跳绳比赛选手证件照.xlsx"), 0, null, 0, false); |
|
|
// for (int i = 0; i < objects.size(); i++) {
|
|
|
for (int i = 0; i < objects.size(); i++) { |
|
|
// Object[] obj = objects.get(i);
|
|
|
Object[] obj = objects.get(i); |
|
|
// if (obj == null || obj.length < 4) {
|
|
|
if (obj == null || obj.length < 4) { |
|
|
// continue;
|
|
|
continue; |
|
|
// }
|
|
|
} |
|
|
// String path = (String)obj[3];
|
|
|
String path = (String)obj[3]; |
|
|
// String dir = "D:\\选手证件照\\" + obj[0] + "\\" + obj[1] + "\\" + obj[2];
|
|
|
String dir = "D:\\选手证件照\\" + obj[0] + "\\" + obj[1] + "\\" + obj[2]; |
|
|
// try{
|
|
|
try{ |
|
|
// downloadFile(path, dir);
|
|
|
downloadFile(path, dir); |
|
|
// } catch (Exception e) {
|
|
|
} catch (Exception e) { |
|
|
// System.out.println("下载失败:" + dir);
|
|
|
System.out.println("下载失败:" + dir); |
|
|
// e.printStackTrace();
|
|
|
e.printStackTrace(); |
|
|
//
|
|
|
|
|
|
// }
|
|
|
} |
|
|
// }
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|