edu.umd.cfar.lamp.mpeg1.system
Class SystemIndexElement
java.lang.Object
edu.umd.cfar.lamp.mpeg1.system.SystemIndexElement
- public class SystemIndexElement
- extends java.lang.Object
|
Constructor Summary |
SystemIndexElement(long systemStreamDataStartPosition,
long elementaryStreamDataStartPosition,
int packetDataLength)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SystemIndexElement
public SystemIndexElement(long systemStreamDataStartPosition,
long elementaryStreamDataStartPosition,
int packetDataLength)
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()