|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMutableSnacPacket
Provides an interface for modifying the contents of a SNAC packet.
Constructor Summary | |
MutableSnacPacket(SnacPacket packet)
Creates a mutable SNAC packet object with the same properties as the given object. |
Method Summary | |
int |
getCommand()
Returns this packet's SNAC command code ("subtype"). |
ByteBlock |
getData()
Returns this packet's SNAC data block. |
int |
getFamily()
Returns this packet's SNAC family code. |
short |
getFlag1()
Returns this packet's first SNAC flag byte. |
short |
getFlag2()
Returns this packet's second SNAC flag byte. |
long |
getReqid()
Returns this packet's SNAC request ID. |
boolean |
isChanged()
Returns true if this object has been modified since its
creation (via one of the set methods). |
void |
setCommand(int command)
Sets this packet's SNAC command subtype. |
void |
setData(ByteBlock data)
Sets this packet's SNAC data block. |
void |
setFamily(int family)
Sets this packet's SNAC family code. |
void |
setFlag1(short flag1)
Sets this packet's first SNAC flag byte. |
void |
setFlag2(short flag2)
Sets this packet's second SNAC flag byte. |
void |
setReqid(long reqid)
Sets this packet's SNAC request ID. |
SnacPacket |
toSnacPacket()
Returns a SNAC packet object with the same properties as this object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MutableSnacPacket(SnacPacket packet)
packet
- the SNAC packet whose properties are to be copied into this
objectMethod Detail |
public final int getFamily()
public final int getCommand()
public final long getReqid()
public final short getFlag1()
public final short getFlag2()
public final ByteBlock getData()
public void setFamily(int family)
family
- this packet's new SNAC family codepublic void setCommand(int command)
command
- this packet's new SNAC command subtypepublic void setReqid(long reqid)
reqid
- this packet's new SNAC request IDpublic void setFlag1(short flag1)
flag1
- this packet's new first SNAC flag bytepublic void setFlag2(short flag2)
flag2
- this packet's new second SNAC flag bytepublic void setData(ByteBlock data)
data
- this packet's new SNAC data blockpublic boolean isChanged()
true
if this object has been modified since its
creation (via one of the set
methods).
public SnacPacket toSnacPacket()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |