Package com.wowza.wms.transport.mpeg2
Class MPEG2Section
- Object
- 
- com.wowza.wms.transport.mpeg2.MPEG2Section
 
- 
 public class MPEG2Section extends ObjectThe Class mpeg2Section.
- 
- 
Field SummaryFields Modifier and Type Field Description protected intcontinuityCounterThe continuity counter.protected static byteCURNEXT_MASKThe Constant CURNEXT_MASK.protected static intCURNEXT_OFFSETThe Constant CURNEXT_OFFSET.protected static intLAST_SECTION_OFFSETThe Constant LAST_SECTION_OFFSET.protected static byteLENGHT_HIGH_BYTE_MASKThe Constant LENGHT_HIGH_BYTE_MASK.protected static intLENGTH_OFFSETThe Constant LENGTH_OFFSET.protected static intLENGTH_SIZEThe Constant LENGTH_SIZE.protected static intSECTION_OFFSETThe Constant SECTION_OFFSET.protected static intTABLE_ID_EXT_LENGHTThe Constant TABLE_ID_EXT_LENGHT.protected static intTABLE_ID_EXT_OFFSETThe Constant TABLE_ID_EXT_OFFSET.protected static byteVERSION_MASKThe Constant VERSION_MASK.protected static intVERSION_OFFSETThe Constant VERSION_OFFSET.
 - 
Constructor SummaryConstructors Constructor Description MPEG2Section()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intbytesWritten()Bytes written.booleanCRCIsValid()CRC is valid.StringdumpSection(String contextStr)Dump section.intgetAvailableData()Gets the available data.intgetLastSectionNo()Gets the last section no.intgetSectionLength()Gets the section length.intgetSectionNo()Gets the section no.intgetTableID()Gets the table id.intgetTableIDExtension()Gets the table id extension.intgetVersion()Gets the version.booleanisCurrent()Checks if is current.intread()Read.intreadBytes(byte[] buf, int offset, int count)Read bytes.intreadInt()intreadInt(int count, int mask)Read int.voidrewind()Rewind.voidskip(int count)Skip.StringtoString()intwrite(byte[] bytes)Write.
 
- 
- 
- 
Field Detail- 
continuityCounterprotected int continuityCounter The continuity counter.
 - 
LENGTH_OFFSETprotected static final int LENGTH_OFFSET The Constant LENGTH_OFFSET.- See Also:
- Constant Field Values
 
 - 
LENGTH_SIZEprotected static final int LENGTH_SIZE The Constant LENGTH_SIZE.- See Also:
- Constant Field Values
 
 - 
LENGHT_HIGH_BYTE_MASKprotected static final byte LENGHT_HIGH_BYTE_MASK The Constant LENGHT_HIGH_BYTE_MASK.- See Also:
- Constant Field Values
 
 - 
TABLE_ID_EXT_OFFSETprotected static final int TABLE_ID_EXT_OFFSET The Constant TABLE_ID_EXT_OFFSET.- See Also:
- Constant Field Values
 
 - 
TABLE_ID_EXT_LENGHTprotected static final int TABLE_ID_EXT_LENGHT The Constant TABLE_ID_EXT_LENGHT.- See Also:
- Constant Field Values
 
 - 
VERSION_OFFSETprotected static final int VERSION_OFFSET The Constant VERSION_OFFSET.- See Also:
- Constant Field Values
 
 - 
VERSION_MASKprotected static final byte VERSION_MASK The Constant VERSION_MASK.- See Also:
- Constant Field Values
 
 - 
CURNEXT_OFFSETprotected static final int CURNEXT_OFFSET The Constant CURNEXT_OFFSET.- See Also:
- Constant Field Values
 
 - 
CURNEXT_MASKprotected static final byte CURNEXT_MASK The Constant CURNEXT_MASK.- See Also:
- Constant Field Values
 
 - 
SECTION_OFFSETprotected static final int SECTION_OFFSET The Constant SECTION_OFFSET.- See Also:
- Constant Field Values
 
 - 
LAST_SECTION_OFFSETprotected static final int LAST_SECTION_OFFSET The Constant LAST_SECTION_OFFSET.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
writepublic int write(byte[] bytes) throws java.io.IOExceptionWrite.- Parameters:
- bytes- the bytes
- Returns:
- the int
- Throws:
- java.io.IOException- Signals that an I/O exception has occurred.
 
 - 
bytesWrittenpublic int bytesWritten() Bytes written.- Returns:
- the int
 
 - 
getTableIDpublic int getTableID() Gets the table id.- Returns:
- the table id
 
 - 
getSectionLengthpublic int getSectionLength() Gets the section length.- Returns:
- the section length
 
 - 
getTableIDExtensionpublic int getTableIDExtension() Gets the table id extension.- Returns:
- the table id extension
 
 - 
getVersionpublic int getVersion() Gets the version.- Returns:
- the version
 
 - 
isCurrentpublic boolean isCurrent() Checks if is current.- Returns:
- true, if is current
 
 - 
getSectionNopublic int getSectionNo() Gets the section no.- Returns:
- the section no
 
 - 
getLastSectionNopublic int getLastSectionNo() Gets the last section no.- Returns:
- the last section no
 
 - 
getAvailableDatapublic int getAvailableData() Gets the available data.- Returns:
- the available data
 
 - 
CRCIsValidpublic boolean CRCIsValid() CRC is valid.- Returns:
- true, if successful
 
 - 
rewindpublic void rewind() Rewind.
 - 
readpublic int read() Read.- Returns:
- the int
 
 - 
readBytespublic int readBytes(byte[] buf, int offset, int count)Read bytes.- Parameters:
- buf- the buf
- offset- the offset
- count- the count
- Returns:
- the int
 
 - 
readIntpublic int readInt(int count, int mask)Read int.- Parameters:
- count- the count
- mask- the mask
- Returns:
- the int
 
 - 
readIntpublic int readInt() 
 - 
skippublic void skip(int count) Skip.- Parameters:
- count- the count
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- Object
 
 - 
dumpSectionpublic String dumpSection(String contextStr) Dump section.
 
- 
 
-