|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectcom.wowza.wms.amf.AMFObj
public class AMFObj
AMFObj: class that stores the state of channel between the client and the server.
| Constructor Summary | |
|---|---|
AMFObj(int id)
Create new AMFObj for a given channel (id) |
|
AMFObj(int id,
int objectEncoding)
Create new AMFObj for a given channel (id) |
|
| Method Summary | |
|---|---|
void |
addChunk(byte[] buffer,
int offset,
int len)
Add a chunk to the chunk list |
void |
clearByteContainer()
Clear the byte container |
long |
getAbsTimecode()
Get the absolute time code |
int |
getByteContainerLevel()
Fake container for processing |
java.util.List<AMFObjChunk> |
getChunks()
Get the chunks that make up this packet |
int |
getId()
Get channel id |
int |
getObjectEncoding()
|
int |
getSize()
Get packet size |
int |
getSrc()
Get stream id (0 if not stream data) |
long |
getTimecode()
Get timecode (milliseconds) sometimes relative |
int |
getType()
Get content type IVHost.CONTENTTYPE_* |
long |
incAbsTimecode(long absTimecode)
Increment the absolution timecode |
void |
incByteContainerLevel(int byteContainerLevel)
Fake container for processing |
boolean |
isByteContainerEmpty()
Fake container for processing |
boolean |
isByteContainerFull()
Fake container for processing |
boolean |
isLastSentAbsTimecode()
|
boolean |
isLongTimecode()
Get is a 32 bit timecode |
boolean |
isNew()
Is this a new packet. |
boolean |
isObjectEncodingAMF0()
|
boolean |
isObjectEncodingAMF3()
|
long |
setAbsTimecodeLong(long absTimecode)
Set the absolute timecode |
long |
setAbsTimecodeShort(long absTimecode)
Set the absolute timecode |
void |
setByteContainerLevel(int byteContainerLevel)
Fake container for processing |
void |
setId(int id)
Set channel id |
void |
setLastSentAbsTimecode(boolean isLastSentAbsTimecode)
|
void |
setLongTimecode(boolean isLongTimecode)
Set is a 32 bit timecode |
void |
setNew(boolean isNew)
Set is new packet |
void |
setObjectEncoding(int objectEncoding)
|
void |
setSize(int size)
Set packet size |
void |
setSrc(int src)
Set stream id (0 if not stream data) |
void |
setTimecode(long timecode)
Set timecode (milliseconds) sometimes relative |
void |
setType(int type)
Set content type IVHost.CONTENTTYPE_* |
String |
toString()
Return object as formatted string |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AMFObj(int id)
id - channel id
public AMFObj(int id,
int objectEncoding)
id - channel idobjectEncoding - object encoding level (AMF0 or AMF3)| Method Detail |
|---|
public void addChunk(byte[] buffer,
int offset,
int len)
buffer - bufferoffset - offsetlen - lengthpublic void clearByteContainer()
public long getAbsTimecode()
public int getByteContainerLevel()
public java.util.List<AMFObjChunk> getChunks()
public int getId()
public int getObjectEncoding()
public int getSize()
public int getSrc()
public long getTimecode()
public int getType()
public long incAbsTimecode(long absTimecode)
absTimecode - absolute timecode
public void incByteContainerLevel(int byteContainerLevel)
byteContainerLevel - current container levelpublic boolean isByteContainerEmpty()
public boolean isByteContainerFull()
public boolean isLastSentAbsTimecode()
public boolean isLongTimecode()
public boolean isNew()
public boolean isObjectEncodingAMF0()
public boolean isObjectEncodingAMF3()
public long setAbsTimecodeLong(long absTimecode)
absTimecode - absolute timecode
public long setAbsTimecodeShort(long absTimecode)
absTimecode -
public void setByteContainerLevel(int byteContainerLevel)
byteContainerLevel - current container levelpublic void setId(int id)
id - channel idpublic void setLastSentAbsTimecode(boolean isLastSentAbsTimecode)
public void setLongTimecode(boolean isLongTimecode)
isLongTimecode - is a 32 bit timecodepublic void setNew(boolean isNew)
isNew - is new packetpublic void setObjectEncoding(int objectEncoding)
public void setSize(int size)
size - packet sizepublic void setSrc(int src)
src - stream idpublic void setTimecode(long timecode)
timecode - timecode (milliseconds)public void setType(int type)
type - content typepublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||