2 * jTsSplitter - java based mpeg2ts splitter.
3 * Copyright (C) 2009-2012 Yukikaze
8 import java.io.FileWriter;
9 import java.io.IOException;
10 import java.util.logging.Level;
11 import java.util.logging.Logger;
18 public void writeCHList(String tspath,String listpath,int min,int max){
21 Tsfile tsf = new Tsfile();
22 Integer[] programnum = tsf.getProgramNum_byte(tspath);
24 for (int i = 0; i < programnum.length; i++) {
25 if (!(min >0 && min>programnum[i])){
26 if (!(max >0 && max<programnum[i]))
27 str = str + programnum[i].toString() + "\n";
30 fw = new FileWriter(listpath);
33 } catch (IOException ex) {
34 Logger.getLogger(Chlist.class.getName()).log(Level.SEVERE, null, ex);
38 } catch (IOException ex) {
39 Logger.getLogger(Chlist.class.getName()).log(Level.SEVERE, null, ex);