edu.umd.cfar.lamp.mpeg1
Class Mpeg1SystemStream

java.lang.Object
  extended byjava.io.InputStream
      extended byedu.umd.cfar.lamp.mpeg1.Mpeg1SystemStream

public class Mpeg1SystemStream
extends java.io.InputStream


Constructor Summary
Mpeg1SystemStream(java.io.File file)
           
Mpeg1SystemStream(java.io.File file, SystemIndex systemIndex)
           
 
Method Summary
 Mpeg1SystemStream copyStream()
           
 java.io.File getFile()
           
 int getStreamID()
           
 java.util.Vector getStreamList()
           
 SystemIndex getSystemIndex()
           
 java.util.Vector getVideoStreamList()
           
 void index()
           
 void index(java.awt.Component parentComponent, java.lang.Object message)
           
 boolean indexed()
           
 int read()
           
 int read(byte[] buffer)
           
 void readIndex(java.io.File file)
           
 void readIndex(java.io.InputStream in)
           
 void seek(long bytePosition)
           
 void seek(long bytePosition, int stream_id)
           
 void setStream(int stream_id)
           
 void setSystemIndex(SystemIndex systemIndex)
           
 void writeIndex(java.awt.Component parentComponent, java.lang.Object message, java.io.File file)
           
 void writeIndex(java.awt.Component parentComponent, java.lang.Object message, java.io.OutputStream out)
           
 void writeIndex(java.io.File file)
           
 void writeIndex(java.io.OutputStream out)
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mpeg1SystemStream

public Mpeg1SystemStream(java.io.File file)
                  throws java.io.IOException

Mpeg1SystemStream

public Mpeg1SystemStream(java.io.File file,
                         SystemIndex systemIndex)
                  throws java.io.IOException
Method Detail

writeIndex

public void writeIndex(java.io.File file)
                throws java.io.IOException,
                       MpegException
Throws:
java.io.IOException
MpegException

writeIndex

public void writeIndex(java.io.OutputStream out)
                throws java.io.IOException,
                       MpegException
Throws:
java.io.IOException
MpegException

writeIndex

public void writeIndex(java.awt.Component parentComponent,
                       java.lang.Object message,
                       java.io.File file)
                throws java.io.IOException,
                       MpegException
Throws:
java.io.IOException
MpegException

writeIndex

public void writeIndex(java.awt.Component parentComponent,
                       java.lang.Object message,
                       java.io.OutputStream out)
                throws java.io.IOException,
                       MpegException
Throws:
java.io.IOException
MpegException

readIndex

public void readIndex(java.io.File file)
               throws java.io.IOException,
                      MpegException
Throws:
java.io.IOException
MpegException

readIndex

public void readIndex(java.io.InputStream in)
               throws java.io.IOException,
                      MpegException
Throws:
java.io.IOException
MpegException

copyStream

public Mpeg1SystemStream copyStream()
                             throws java.io.IOException
Throws:
java.io.IOException

setSystemIndex

public void setSystemIndex(SystemIndex systemIndex)

setStream

public void setStream(int stream_id)
               throws java.io.IOException,
                      MpegException
Throws:
java.io.IOException
MpegException

getStreamID

public int getStreamID()

getStreamList

public java.util.Vector getStreamList()
                               throws java.io.IOException
Throws:
java.io.IOException

getVideoStreamList

public java.util.Vector getVideoStreamList()
                                    throws java.io.IOException
Throws:
java.io.IOException

getFile

public java.io.File getFile()

getSystemIndex

public SystemIndex getSystemIndex()

index

public void index()
           throws java.io.IOException
Throws:
java.io.IOException

index

public void index(java.awt.Component parentComponent,
                  java.lang.Object message)
           throws java.io.IOException
Throws:
java.io.IOException

indexed

public boolean indexed()

seek

public void seek(long bytePosition)
          throws java.io.IOException,
                 MpegException
Throws:
java.io.IOException
MpegException

seek

public void seek(long bytePosition,
                 int stream_id)
          throws java.io.IOException,
                 MpegException
Throws:
java.io.IOException
MpegException

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(byte[] buffer)
         throws java.io.IOException
Throws:
java.io.IOException