Package com.wowza.wms.transport.mpeg2
Class MPEG2MPTS.MPEG2MPTSBuffer.MPEG2Packet
- Object
-
- com.wowza.wms.transport.mpeg2.MPEG2MPTS.MPEG2MPTSBuffer.MPEG2Packet
-
- Enclosing class:
- MPEG2MPTS.MPEG2MPTSBuffer
public class MPEG2MPTS.MPEG2MPTSBuffer.MPEG2Packet extends Object
The Class MPEG2Packet.
-
-
Field Summary
Fields Modifier and Type Field Description static byte
ADAPTATION_CONTROL_ADAPATION_ONLY
The Constant ADAPTATION_CONTROL_ADAPATION_ONLY.static byte
ADAPTATION_CONTROL_BOTH
The Constant ADAPTATION_CONTROL_BOTH.static byte
ADAPTATION_CONTROL_PAYLOAD_ONLY
The Constant ADAPTATION_CONTROL_PAYLOAD_ONLY.static byte
ADAPTATION_FIELD_PRESENT_MASK
The Constant ADAPTATION_FIELD_PRESENT_MASK.byte
adaptationFieldControl
The adaptation field control.byte
continuityCounter
The continuity counter.static byte
PAYLOAD_PRESENT_MASK
The Constant PAYLOAD_PRESENT_MASK.int
PID
The pid.boolean
PUSI
The pusi.boolean
transportError
The transport error.boolean
transportPriorty
The transport priorty.byte
transportScrambling
The transport scrambling.
-
Constructor Summary
Constructors Constructor Description MPEG2Packet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdaptationField
adaptationFieldRead()
Adaptation field read.void
clear()
Clear.String
dumpPacket(String contextStr)
Dump packet.boolean
LoadPacketData()
Load packet data.int
payloadAvailable()
Payload available.void
payloadMark()
Payload mark.int
payloadRead()
Payload read.boolean
payloadRead(byte[] bytes, int offset, int length)
Payload read.PacketFragment
payloadReadFragment(int length)
int
payloadReadInt(int count, int mask)
Payload read int.void
payloadReset()
Payload reset.boolean
payloadSkip(int count)
Payload skip.String
toString()
String
toString(int count)
To string.String
toString(int count, String contextStr)
String
toString(String contextStr)
-
-
-
Field Detail
-
ADAPTATION_CONTROL_PAYLOAD_ONLY
public static final byte ADAPTATION_CONTROL_PAYLOAD_ONLY
The Constant ADAPTATION_CONTROL_PAYLOAD_ONLY.- See Also:
- Constant Field Values
-
ADAPTATION_CONTROL_ADAPATION_ONLY
public static final byte ADAPTATION_CONTROL_ADAPATION_ONLY
The Constant ADAPTATION_CONTROL_ADAPATION_ONLY.- See Also:
- Constant Field Values
-
ADAPTATION_CONTROL_BOTH
public static final byte ADAPTATION_CONTROL_BOTH
The Constant ADAPTATION_CONTROL_BOTH.- See Also:
- Constant Field Values
-
ADAPTATION_FIELD_PRESENT_MASK
public static final byte ADAPTATION_FIELD_PRESENT_MASK
The Constant ADAPTATION_FIELD_PRESENT_MASK.- See Also:
- Constant Field Values
-
PAYLOAD_PRESENT_MASK
public static final byte PAYLOAD_PRESENT_MASK
The Constant PAYLOAD_PRESENT_MASK.- See Also:
- Constant Field Values
-
transportError
public boolean transportError
The transport error.
-
PUSI
public boolean PUSI
The pusi.
-
transportPriorty
public boolean transportPriorty
The transport priorty.
-
PID
public int PID
The pid.
-
transportScrambling
public byte transportScrambling
The transport scrambling.
-
adaptationFieldControl
public byte adaptationFieldControl
The adaptation field control.
-
continuityCounter
public byte continuityCounter
The continuity counter.
-
-
Method Detail
-
clear
public void clear()
Clear.
-
LoadPacketData
public boolean LoadPacketData() throws IllegalArgumentException
Load packet data.- Returns:
- true, if successful
- Throws:
IllegalArgumentException
- the illegal argument exception
-
adaptationFieldRead
public AdaptationField adaptationFieldRead()
Adaptation field read.- Returns:
- the adaptation field
-
payloadRead
public int payloadRead()
Payload read.- Returns:
- the int
-
payloadRead
public boolean payloadRead(byte[] bytes, int offset, int length)
Payload read.- Parameters:
bytes
- the bytesoffset
- the offsetlength
- the length- Returns:
- the int
-
payloadReadFragment
public PacketFragment payloadReadFragment(int length)
-
payloadReadInt
public int payloadReadInt(int count, int mask)
Payload read int.- Parameters:
count
- the countmask
- the mask- Returns:
- the int
-
payloadSkip
public boolean payloadSkip(int count)
Payload skip.- Parameters:
count
- the count- Returns:
- the int
-
payloadAvailable
public int payloadAvailable()
Payload available.- Returns:
- the int
-
payloadMark
public void payloadMark()
Payload mark.
-
payloadReset
public void payloadReset()
Payload reset.
-
toString
public String toString()
- Overrides:
toString
in classObject
-
toString
public String toString(String contextStr)
-
toString
public String toString(int count)
To string.- Parameters:
count
- the count- Returns:
- the string
-
toString
public String toString(int count, String contextStr)
-
dumpPacket
public String dumpPacket(String contextStr)
Dump packet.
-
-