public class MPEG2Section
extends Object
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
continuityCounter |
The continuity counter.
|
protected static byte |
CURNEXT_MASK |
The Constant CURNEXT_MASK.
|
protected static int |
CURNEXT_OFFSET |
The Constant CURNEXT_OFFSET.
|
protected static int |
LAST_SECTION_OFFSET |
The Constant LAST_SECTION_OFFSET.
|
protected static byte |
LENGHT_HIGH_BYTE_MASK |
The Constant LENGHT_HIGH_BYTE_MASK.
|
protected static int |
LENGTH_OFFSET |
The Constant LENGTH_OFFSET.
|
protected static int |
LENGTH_SIZE |
The Constant LENGTH_SIZE.
|
protected static int |
SECTION_OFFSET |
The Constant SECTION_OFFSET.
|
protected static int |
TABLE_ID_EXT_LENGHT |
The Constant TABLE_ID_EXT_LENGHT.
|
protected static int |
TABLE_ID_EXT_OFFSET |
The Constant TABLE_ID_EXT_OFFSET.
|
protected static byte |
VERSION_MASK |
The Constant VERSION_MASK.
|
protected static int |
VERSION_OFFSET |
The Constant VERSION_OFFSET.
|
| Constructor | Description |
|---|---|
MPEG2Section() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
bytesWritten() |
Bytes written.
|
boolean |
CRCIsValid() |
CRC is valid.
|
String |
dumpSection(String contextStr) |
Dump section.
|
int |
getAvailableData() |
Gets the available data.
|
int |
getLastSectionNo() |
Gets the last section no.
|
int |
getSectionLength() |
Gets the section length.
|
int |
getSectionNo() |
Gets the section no.
|
int |
getTableID() |
Gets the table id.
|
int |
getTableIDExtension() |
Gets the table id extension.
|
int |
getVersion() |
Gets the version.
|
boolean |
isCurrent() |
Checks if is current.
|
int |
read() |
Read.
|
int |
readBytes(byte[] buf,
int offset,
int count) |
Read bytes.
|
int |
readInt() |
|
int |
readInt(int count,
int mask) |
Read int.
|
void |
rewind() |
Rewind.
|
void |
skip(int count) |
Skip.
|
String |
toString() |
|
int |
write(byte[] bytes) |
Write.
|
protected int continuityCounter
protected static final byte CURNEXT_MASK
protected static final int CURNEXT_OFFSET
protected static final int LAST_SECTION_OFFSET
protected static final byte LENGHT_HIGH_BYTE_MASK
protected static final int LENGTH_OFFSET
protected static final int LENGTH_SIZE
protected static final int SECTION_OFFSET
protected static final int TABLE_ID_EXT_LENGHT
protected static final int TABLE_ID_EXT_OFFSET
protected static final byte VERSION_MASK
protected static final int VERSION_OFFSET
public int bytesWritten()
public boolean CRCIsValid()
public String dumpSection(String contextStr)
public int getAvailableData()
public int getLastSectionNo()
public int getSectionLength()
public int getSectionNo()
public int getTableID()
public int getTableIDExtension()
public int getVersion()
public boolean isCurrent()
public int read()
public int readBytes(byte[] buf,
int offset,
int count)
buf - the bufoffset - the offsetcount - the countpublic int readInt()
public int readInt(int count,
int mask)
count - the countmask - the maskpublic void rewind()
public void skip(int count)
count - the countpublic String toString()
toString in class Objectpublic int write(byte[] bytes)
throws java.io.IOException
bytes - the bytesjava.io.IOException - Signals that an I/O exception has occurred.