edu.umd.cfar.lamp.mpeg1
Class Mpeg1File

java.lang.Object
  extended byedu.umd.cfar.lamp.mpeg1.Mpeg1File

public class Mpeg1File
extends java.lang.Object


Field Summary
static byte AUDIO
           
static byte SYSTEM
           
static byte VIDEO
           
 
Constructor Summary
Mpeg1File(java.io.File file)
           
 
Method Summary
 java.io.File getFile()
           
 java.util.Vector getStreamList()
           
static byte getStreamType(java.io.File file)
           
 Mpeg1VideoStream getVideoStream()
           
 Mpeg1VideoStream getVideoStream(int stream_id)
           
 java.util.Vector getVideoStreamList()
           
 boolean isAudioFile()
           
 boolean isSystemFile()
           
static boolean isSystemFile(java.io.File file)
           
 boolean isSystemOrVideoFile()
           
static boolean isSystemOrVideoFile(java.io.File file)
           
 boolean isVideoFile()
           
static boolean isVideoFile(java.io.File file)
           
 void readSystemIndex(java.io.File file)
           
 void readSystemIndex(java.io.InputStream in)
           
 void writeSystemIndex(java.awt.Component parentComponent, java.lang.Object message, java.io.File file)
           
 void writeSystemIndex(java.awt.Component parentComponent, java.lang.Object message, java.io.OutputStream out)
           
 void writeSystemIndex(java.io.File file)
           
 void writeSystemIndex(java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM

public static final byte SYSTEM
See Also:
Constant Field Values

VIDEO

public static final byte VIDEO
See Also:
Constant Field Values

AUDIO

public static final byte AUDIO
See Also:
Constant Field Values
Constructor Detail

Mpeg1File

public Mpeg1File(java.io.File file)
          throws java.io.IOException,
                 UnsupportedStreamTypeException
Method Detail

getFile

public java.io.File getFile()

readSystemIndex

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

readSystemIndex

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

writeSystemIndex

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

writeSystemIndex

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

writeSystemIndex

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

writeSystemIndex

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

isSystemFile

public static boolean isSystemFile(java.io.File file)
                            throws java.io.IOException
Throws:
java.io.IOException

isVideoFile

public static boolean isVideoFile(java.io.File file)
                           throws java.io.IOException
Throws:
java.io.IOException

isSystemOrVideoFile

public static boolean isSystemOrVideoFile(java.io.File file)
                                   throws java.io.IOException
Throws:
java.io.IOException

getStreamType

public static byte getStreamType(java.io.File file)
                          throws java.io.IOException
Throws:
java.io.IOException

isSystemFile

public boolean isSystemFile()

isVideoFile

public boolean isVideoFile()

isSystemOrVideoFile

public boolean isSystemOrVideoFile()

isAudioFile

public boolean isAudioFile()

getStreamList

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

getVideoStreamList

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

getVideoStream

public Mpeg1VideoStream getVideoStream(int stream_id)
                                throws java.io.IOException,
                                       MpegException
Throws:
java.io.IOException
MpegException

getVideoStream

public Mpeg1VideoStream getVideoStream()
                                throws MpegException,
                                       java.io.IOException
Throws:
MpegException
java.io.IOException