|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSnacPacket
Represents a single "packet" or SNAC command sent over a FLAP connection.
Constructor Summary | |
SnacPacket(int family,
int command,
long reqid,
short flag1,
short flag2,
ByteBlock data)
Creates a SNAC packet object with the given properties. |
Method Summary | |
int |
getCommand()
Returns this packet's SNAC command code ("subtype"). |
ByteBlock |
getData()
Returns this packet's SNAC data block, or null if this
packet was not read from an incoming stream. |
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. |
java.lang.String |
toString()
|
void |
write(java.io.OutputStream out)
Writes a representation of this object to the given stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SnacPacket(int family, int command, long reqid, short flag1, short flag2, ByteBlock data)
family
- the packet's SNAC family codecommand
- the packet's SNAC family command subtypereqid
- the packet's request IDflag1
- the packet's first SNAC flag byteflag2
- the packet's second SNAC flag bytedata
- the SNAC data blockMethod 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()
null
if this
packet was not read from an incoming stream.
public void write(java.io.OutputStream out) throws java.io.IOException
LiveWritable
write
in interface LiveWritable
out
- the stream to which to write
java.io.IOException
- if an I/O error occurspublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |