package net.katsuster.strview.ui;

import java.awt.HeadlessException;

import javax.swing.*;

import net.katsuster.strview.io.*;
import net.katsuster.strview.gui.*;

/**
 * メインクラス。
 */
public class Main {
    protected Main() {
        //do nothing
    }

    public static void main(String[] args) {
        FileDropWindow w = null;

        try {
            //Look and Feel をシステム標準に変更する
            try {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            } catch (Exception ex) {
                ex.printStackTrace();
                return;
            }

            //結果表示用のフレームを作成する
            w = new FileDropWindow();
            w.setTitle("bined");
            w.setSize(300, 100);
            w.setVisible(true);
        } catch (HeadlessException ex) {

        }
    }
}

@@ -28,16 +28,54 @@
 ew.ui;%0A%0A
+import java.util.*;%0Aimport java.io.*;%0A
 import j
@@ -101,16 +101,16 @@
 eption;%0A
-
 %0Aimport 
@@ -195,16 +195,57 @@
 w.gui.*;
+%0Aimport net.katsuster.strview.media.ts.*;
 %0A%0A/**%0A *
@@ -369,24 +369,24 @@
 g%5B%5D args) %7B%0A
-
         File
@@ -407,16 +407,451 @@
  null;%0A%0A
+        if (args.length %3E 0) %7B%0A            String fname = args%5B0%5D;%0A            List%3CFile%3E flist = new ArrayList%3CFile%3E();%0A%0A            flist.add(new File(fname));%0A%0A            LargeBitList blist = new ByteToBitList(new FileByteList(fname));%0A            TSPacketList tslist = new TSPacketList(blist);%0A%0A            //tslist.count();%0A%0A            for (TSPacket a : tslist) %7B%0A                System.out.println(a);%0A            %7D%0A        %7D%0A%0A
         

Add tentative test codes for MPEG2-TS packet parser.