|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides an interface for generating SnacCommand
s from
SnacPacket
s.
Method Summary | |
SnacCommand |
genSnacCommand(SnacPacket packet)
Attempts to convert the given SNAC packet to a SnacCommand .
|
CmdType[] |
getSupportedTypes()
Returns a list of the SNAC command types this factory can possibly convert to SnacCommand s. |
Method Detail |
public CmdType[] getSupportedTypes()
SnacCommand
s. Note that it is not required to
be able to convert every SNAC packet that matches the types returned by
this method; rather, this just provides a means of filtering out types
that can definitely not be handled (by not including them in the returned
list).
genSnacCommand
public SnacCommand genSnacCommand(SnacPacket packet)
SnacCommand
.
This can return null
if no appropriate
SnacCommand
can be created (for example, if the packet is in
an invalid format).
packet
- the packet to use for generation of a
SnacCommand
SnacCommand
for representing the
given SnacPacket
, or null
if no such
object can be created
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |