edu.umd.cfar.lamp.mpeg1.system
Class SystemIndexElement

java.lang.Object
  extended byedu.umd.cfar.lamp.mpeg1.system.SystemIndexElement

public class SystemIndexElement
extends java.lang.Object


Constructor Summary
SystemIndexElement(long systemStreamDataStartPosition, long elementaryStreamDataStartPosition, int packetDataLength)
           
 
Method Summary
 boolean containsByte(long bytePosition)
          Determines whether or not the SystemIndexElement contains the given byte (bytePosition) of the elementary stream of this packet.
 int findByte(long bytePosition)
          Checks to see that the position is contained within.
 long getElementaryStreamDataStartPosition()
           
 int getPacketDataLength()
           
 long getSystemStreamDataStartPosition()
           
 java.lang.String toString()
           
 void writeIndex(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SystemIndexElement

public SystemIndexElement(long systemStreamDataStartPosition,
                          long elementaryStreamDataStartPosition,
                          int packetDataLength)
Method Detail

writeIndex

public void writeIndex(java.io.DataOutput out)
                throws java.io.IOException
Throws:
java.io.IOException

containsByte

public boolean containsByte(long bytePosition)
Determines whether or not the SystemIndexElement contains the given byte (bytePosition) of the elementary stream of this packet.

Parameters:
bytePosition - the byte position
Returns:

findByte

public int findByte(long bytePosition)
Checks to see that the position is contained within.

Parameters:
bytePosition - byte offset to look for
Returns:
-1 if bytePosition < the position of this packet in the elementary stream,
0 if bytePosition == the position of this packet in the elementary stream,
1 if bytePosition > the position of this packet in the elementary stream.

toString

public java.lang.String toString()

getSystemStreamDataStartPosition

public long getSystemStreamDataStartPosition()

getElementaryStreamDataStartPosition

public long getElementaryStreamDataStartPosition()

getPacketDataLength

public int getPacketDataLength()