Revision | 729104b481d974db4975b59bdc1e2f4920a6e71f (tree) |
---|---|
Zeit | 2018-01-08 21:12:46 |
Autor | shupeluter@hotmail.com <shupeluter@hotm...> |
Commiter | shupeluter@hotmail.com |
Mainクラスを追加
@@ -0,0 +1,39 @@ | ||
1 | +/* | |
2 | + * To change this license header, choose License Headers in Project Properties. | |
3 | + * To change this template file, choose Tools | Templates | |
4 | + * and open the template in the editor. | |
5 | + */ | |
6 | +package jp.co.nec.jsight.filecleaner; | |
7 | + | |
8 | +import java.io.File; | |
9 | + | |
10 | +/** | |
11 | + * | |
12 | + * @author shupe | |
13 | + */ | |
14 | +public class CleanerMainCUI { | |
15 | + | |
16 | + public static void main(String[] args) { | |
17 | + if (args == null | args.length != 1) { | |
18 | + printUsage(); | |
19 | + } else { | |
20 | + File file = new File(args[0]); | |
21 | + FileCleanerManager fcm = new FileCleanerManager(); | |
22 | + if(file.exists() && file.isDirectory()){ | |
23 | + fcm.clean(file); | |
24 | + } else { | |
25 | + printUsage(); | |
26 | + } | |
27 | + } | |
28 | + } | |
29 | + | |
30 | + public static void printUsage() { | |
31 | + StringBuilder sb = new StringBuilder(); | |
32 | + sb.append("【USAGE】\n"); | |
33 | + sb.append("java jp.co.nec.jsight.CleanMainCUI <arg1>\n"); | |
34 | + sb.append("\t引数には置換対象のディレクトリを指定してください"); | |
35 | + | |
36 | + System.out.println(sb); | |
37 | + | |
38 | + } | |
39 | +} |
@@ -52,7 +52,6 @@ public class ExcelCleaner extends AbsFileCleaner { | ||
52 | 52 | for (Row row : wb.getSheetAt(i)) { |
53 | 53 | |
54 | 54 | for (Cell cell : row) { |
55 | - System.out.println(Cell.CELL_TYPE_STRING+";"+cell.getCellType()); | |
56 | 55 | switch (cell.getCellType()) { |
57 | 56 | |
58 | 57 | case Cell.CELL_TYPE_STRING: |