net.kano.joscar.snaccmd.loc
Class GetDirInfoCmd
java.lang.Object
SnacCommand
LocCommand
GetDirInfoCmd
- public class GetDirInfoCmd
- extends LocCommand
A SNAC command used to request another user's directory information. Normally
responded-to with a DirInfoCmd
.
- See Also:
DirInfoCmd
- Source of this SNAC:
- AIM client
- SNAC command type:
- Family
0x02
, command 0x0b
Fields inherited from class LocCommand |
CMD_DIR_INFO, CMD_GET_DIR, CMD_INTEREST_ACK, CMD_NEW_GET_INFO, CMD_OLD_GET_INFO, CMD_RIGHTS_REQ, CMD_RIGHTS_RESP, CMD_SET_DIR, CMD_SET_DIR_ACK, CMD_SET_INFO, CMD_SET_INTERESTS, CMD_USER_INFO, FAMILY_INFO, FAMILY_LOC |
Constructor Summary |
protected |
GetDirInfoCmd(SnacPacket packet)
Generates a new directory information request from the given incoming
SNAC command. |
|
GetDirInfoCmd(java.lang.String sn)
Creates a new directory information request for the given user. |
Method Summary |
java.lang.String |
getScreenname()
Returns the screenname of the user whose directory information is being
requested. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GetDirInfoCmd
protected GetDirInfoCmd(SnacPacket packet)
- Generates a new directory information request from the given incoming
SNAC command.
- Parameters:
packet
- an incoming directory information request packet
GetDirInfoCmd
public GetDirInfoCmd(java.lang.String sn)
- Creates a new directory information request for the given user.
- Parameters:
sn
- the screenname of the user whose directory information is being
requested
getScreenname
public final java.lang.String getScreenname()
- Returns the screenname of the user whose directory information is being
requested.
- Returns:
- the screenname of the user whose directory information is being
requested
writeData
public void writeData(java.io.OutputStream out)
throws java.io.IOException
- Description copied from class:
SnacCommand
- Writes this command's SNAC data block to the given stream. The SNAC data
block is the data after the first ten bytes of a SNAC packet.
- Specified by:
writeData
in class SnacCommand
- Parameters:
out
- the stream to which to write the SNAC data
- Throws:
java.io.IOException
- if an I/O error occurs
toString
public java.lang.String toString()