OSDN Git Service

527ffcef0b1e836c65b5102e0bbde9fcfb9eb29f
[rec10/rec10-git.git] / jTsSplitter / trunk / src / jtssplitter / Main.java
1 /*
2  * To change this template, choose Tools | Templates
3  * and open the template in the editor.
4  */
5 package jtssplitter;
6
7
8 /**
9  *
10  * @author Administrator
11  */
12 public class Main {
13
14     /**
15      * @param args the command line arguments
16      *
17      */
18     public static void main(String[] args) {
19         // TODO code application logic here
20         String inf;
21         String outf;
22         int ch = 0;
23         inf = "";
24         outf = "";
25         for (int i = 0; i < args.length; i++) {
26             System.out.println(args[i]);
27         }
28         if (args.length > 1) {
29             inf = args[0];
30             outf = args[1];
31             if (args.length > 2) {
32                 ch = Integer.parseInt(args[2].trim(), 10);
33             }
34         }
35         Tsfile t1 = new Tsfile();
36         t1.splitTS(inf, outf, ch);
37     }
38 }