edu.umd.cfar.lamp.mpeg1.video
Class VideoSource

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

public class VideoSource
extends java.io.InputStream


Field Summary
static int DEFAULT_BUFFER_SIZE
           
 
Constructor Summary
VideoSource(java.io.File file)
           
VideoSource(java.io.File file, int bufferSize)
           
VideoSource(Mpeg1SystemStream stream, int stream_id)
           
VideoSource(Mpeg1SystemStream stream, int stream_id, int bufferSize)
           
 
Method Summary
 int available()
           
 void close()
           
 VideoSource copySource()
           
 void flushBuffer()
           
 int getStreamID()
           
 boolean isFile()
           
 boolean isSystemStream()
           
 int read()
           
 void seek(long offset)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_BUFFER_SIZE

public static final int DEFAULT_BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

VideoSource

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

VideoSource

public VideoSource(Mpeg1SystemStream stream,
                   int stream_id)
            throws java.io.IOException,
                   MpegException

VideoSource

public VideoSource(java.io.File file,
                   int bufferSize)
            throws java.io.IOException

VideoSource

public VideoSource(Mpeg1SystemStream stream,
                   int stream_id,
                   int bufferSize)
            throws java.io.IOException,
                   MpegException
Method Detail

getStreamID

public int getStreamID()

copySource

public VideoSource copySource()
                       throws java.io.IOException,
                              MpegException
Throws:
java.io.IOException
MpegException

isFile

public boolean isFile()

isSystemStream

public boolean isSystemStream()

seek

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

flushBuffer

public void flushBuffer()

available

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

close

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

read

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