|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.io.flv.impl.Tag
public class Tag
A Tag represents the contents or payload of a FLV file.
Field Summary |
---|
Constructor Summary | |
---|---|
Tag()
Constructs a new Tag. |
|
Tag(byte dataType,
int timestamp,
int bodySize,
IoBuffer body,
int previousTagSize)
TagImpl Constructor |
Method Summary | |
---|---|
byte |
getBitflags()
Getter for bit flags |
IoBuffer |
getBody()
Return the body IoBuffer |
int |
getBodySize()
Return the size of the body |
IoBuffer |
getData()
Returns the data as a ByteBuffer |
byte |
getDataType()
Get the data type |
int |
getPreviousTagSize()
Return previous tag size |
int |
getPreviuosTagSize()
Getter for previous tag size |
int |
getTimestamp()
Return the timestamp |
byte |
getType()
Getter for tag type |
void |
setBitflags(byte bitflags)
Setter for bit flags |
void |
setBody(IoBuffer body)
Set the body ByteBuffer. |
void |
setBodySize(int bodySize)
Set the size of the body. |
void |
setData()
Setter for tag data. |
void |
setDataType(byte dataType)
Set the data type. |
void |
setPreviousTagSize(int size)
Set the size of the previous tag. |
void |
setPreviuosTagSize(int previuosTagSize)
Setter for previous tag size |
void |
setTimestamp(int timestamp)
Set the timestamp. |
void |
setType(byte type)
Setter for tag type |
String |
toString()
Prints out the contents of the tag |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Tag(byte dataType, int timestamp, int bodySize, IoBuffer body, int previousTagSize)
dataType
- Tag data typetimestamp
- TimestampbodySize
- Tag body sizebody
- Tag bodypreviousTagSize
- Previous tag size informationpublic Tag()
Method Detail |
---|
public byte getBitflags()
public void setBitflags(byte bitflags)
bitflags
- Bit flagspublic int getPreviuosTagSize()
public void setPreviuosTagSize(int previuosTagSize)
previuosTagSize
- Value to set for previous tag sizepublic IoBuffer getData()
getData
in interface ITag
public IoBuffer getBody()
getBody
in interface ITag
public int getBodySize()
getBodySize
in interface ITag
public byte getDataType()
getDataType
in interface ITag
public int getTimestamp()
getTimestamp
in interface ITag
public int getPreviousTagSize()
getPreviousTagSize
in interface ITag
public String toString()
toString
in class Object
public byte getType()
public void setType(byte type)
type
- Tag typepublic void setBody(IoBuffer body)
setBody
in interface ITag
body
- Body as ByteBufferpublic void setBodySize(int bodySize)
setBodySize
in interface ITag
bodySize
- Body sizepublic void setDataType(byte dataType)
setDataType
in interface ITag
dataType
- Data typepublic void setTimestamp(int timestamp)
setTimestamp
in interface ITag
timestamp
- Timestamppublic void setData()
public void setPreviousTagSize(int size)
setPreviousTagSize
in interface ITag
size
- Previous tag size
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |