OSDN Git Service

94c04ebfc6b77bb7969a28f940d66dcb9affce09
[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
6 package jtssplitter;
7
8 import java.io.File;
9
10 /**
11  *
12  * @author Administrator
13  */
14 public class Main {
15
16     /**
17      * @param args the command line arguments
18      */
19     public static void main(String[] args) {
20         // TODO code application logic here
21         String inf,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 }