OSDN Git Service

change appending mode to not appending mode.
[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 boolean debug_mode=false;
20     public static void main(String[] args) {
21         // TODO code application logic here
22         String inf,outf;
23         int ch=0;
24         inf="";
25         outf="";
26         if (args.length>1){
27             inf=args[0];
28             outf=args[1];
29             if (args.length>2){
30                 ch=Integer.parseInt(args[2].trim(),10);
31             }
32         }
33         Tsfile t1=new Tsfile();
34         //inf="'D:\\jTssplitter\\test.ts'";
35         //outf="'D:\\jTssplitter\\test.split-5test.ts'";
36         inf=inf.replace("\"","");
37         inf=inf.replace("\'","");
38         outf=outf.replace("\"","");
39         outf=outf.replace("\'","");
40         //t1.readTs("D:\\jTssplitter\\test-sp.ts");
41         //inf="/home/ftpusr/ftp-tmp/tester/test.ts";
42         //outf="/home/ftpusr/ftp-tmp/tester/test.tssp2.ts";
43         //inf="/home/ftpusr/ftp-tmp/tester/NEEDLESS.tsmix.ts";
44         //outf="/home/ftpusr/ftp-tmp/tester/Needless.tssp.ts";
45         t1.splitTS(inf,outf,ch);
46     }
47 }