|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSnacCommand
SearchCommand
SearchResultsCmd
A SNAC command containing a list of search results. Normally sent in response
to a SearchBuddiesCmd.
SearchBuddiesCmd0x0f, command 0x03| Field Summary | |
static int |
CODE_DEFAULT
The only result code I've ever seen. |
static int |
SUBCODE_DEFAULT
The only result subcode I've ever seen. |
| Fields inherited from class SearchCommand |
CMD_INTERESTS, CMD_INTERESTS_REQ, CMD_RESULTS, CMD_SEARCH, FAMILY_INFO, FAMILY_SEARCH |
| Fields inherited from class SnacCommand |
SNACFLAG_DEFAULT |
| Constructor Summary | |
|
SearchResultsCmd(DirInfo[] results)
Creates a new outgoing search results command with the given list of results. |
|
SearchResultsCmd(int code,
int subCode,
DirInfo[] results)
Creates a new outgoing search results command with the given list of results and the given code and subcode. |
protected |
SearchResultsCmd(SnacPacket packet)
Generates a new search result list command from the given incoming SNAC packet. |
| Method Summary | |
int |
getResultCode()
Returns the result code sent in this command. |
DirInfo[] |
getResults()
Returns the list of results sent in this command, or null
if none were sent. |
int |
getResultSubCode()
Returns the result "subcode" sent in this command. |
java.lang.String |
toString()
|
void |
writeData(java.io.OutputStream out)
Writes this command's SNAC data block to the given stream. |
| Methods inherited from class SnacCommand |
getCommand, getFamily, getFlag1, getFlag2 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int CODE_DEFAULT
public static final int SUBCODE_DEFAULT
| Constructor Detail |
protected SearchResultsCmd(SnacPacket packet)
packet - an incoming search result list packetpublic SearchResultsCmd(DirInfo[] results)
CODE_DEFAULT and
SUBCODE_DEFAULT, respectively. Using this constructor is
equivalent to using new
SearchResultsCmd(SearchResultsCmd.CODE_DEFAULT,
SearchResultsCmd.SUBCODE_DEFAULT, results).
results - the list of reuslts to send in this command
public SearchResultsCmd(int code,
int subCode,
DirInfo[] results)
code - a result code, normally CODE_DEFAULTsubCode - a result subcode, normally SUBCODE_DEFAULTresults - a list of results, or null for none| Method Detail |
public final int getResultCode()
CODE_DEFAULT.
public final int getResultSubCode()
SUBCODE_DEFAULT.
public DirInfo[] getResults()
null
if none were sent.
public void writeData(java.io.OutputStream out)
throws java.io.IOException
SnacCommand
writeData in class SnacCommandout - the stream to which to write the SNAC data
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 | |||||||||