1 public class BitstreamWrapper {
3 private static Bitstream stream;
4 private static int idx=0;
7 public static void init(String filename) {
8 FileInputStream fin = new FileInputStream(filename);
9 BufferedInputStream bin = new BufferedInputStream(fin);
10 stream = new Bitstream(bin);
14 public static Header readFrame() {
15 Header h=stream.readFrame();