public abstract class VariableBodyRtmpPacket extends RtmpPacket
Examples of this type of packet are Command and Data; this abstract class exists mostly for code re-use.
Modifier and Type | Field and Description |
---|---|
protected java.util.List<AmfData> |
data |
header
Constructor and Description |
---|
VariableBodyRtmpPacket(RtmpHeader header) |
Modifier and Type | Method and Description |
---|---|
void |
addData(AmfData dataItem) |
void |
addData(boolean bool) |
void |
addData(double number) |
void |
addData(java.lang.String string) |
java.util.List<AmfData> |
getData() |
protected void |
readVariableData(java.io.InputStream in,
int bytesAlreadyRead) |
protected void |
writeVariableData(java.io.OutputStream out) |
protected java.util.List<AmfData> data
public VariableBodyRtmpPacket(RtmpHeader header)
public java.util.List<AmfData> getData()
public void addData(java.lang.String string)
public void addData(double number)
public void addData(boolean bool)
public void addData(AmfData dataItem)
protected void readVariableData(java.io.InputStream in, int bytesAlreadyRead) throws java.io.IOException
java.io.IOException
protected void writeVariableData(java.io.OutputStream out) throws java.io.IOException
java.io.IOException