|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRvCommand
AbstractRvCmd
AbstractRequestRvCmd
SendBuddyIconRvCmd
A rendezvous command used to send one's "buddy icon" to another user. Note
that while this method of distributing one's icon should be supported for
backwards compability, it is becoming obsolete with the coming of the
buddy icon service.
Note that while it may seem odd, one's buddy icon is sent in its entirety
over the SNAC connection in an (this) rendezvous command.
Field Summary | |
static java.lang.String |
ICONIDSTRING_DEFAULT
An "icon ID string" used by WinAIM by default. |
Fields inherited from class AbstractRequestRvCmd |
FPRESENT_DEFAULT, REQTYPE_INITIALREQUEST, REQTYPE_REDIRECT |
Fields inherited from class RvCommand |
RVSTATUS_ACCEPT, RVSTATUS_DENY, RVSTATUS_REQUEST |
Constructor Summary | |
SendBuddyIconRvCmd(OldIconHashInfo hash,
LiveWritable iconDataWriter)
Creates a new outgoing buddy icon send command with the given icon hash and the given icon data writer. |
|
SendBuddyIconRvCmd(OldIconHashInfo hash,
LiveWritable iconDataWriter,
java.lang.String iconIdString)
Creates a new outgoing buddy icon send command with the given icon hash icon data writer, and "ID string." |
|
SendBuddyIconRvCmd(RecvRvIcbm icbm)
Creates a new send-buddy-icon command from the given incoming send-buddy-icon RV ICBM. |
Method Summary | |
ByteBlock |
getIconData()
Returns the block of buddy icon data sent in this command. |
OldIconHashInfo |
getIconHash()
Returns the "old-format icon hash block" sent in this command. |
java.lang.String |
getIconIdString()
Returns the "icon ID string" sent with the associated icon, if any. |
java.lang.String |
toString()
|
protected void |
writeRvTlvs(java.io.OutputStream out)
Writes this RV command's list of rendezvous TLV's to the given stream. |
protected void |
writeServiceData(java.io.OutputStream out)
Writes this RV command's "service data block." |
Methods inherited from class AbstractRequestRvCmd |
getRequestType, isFPresent, writeHeaderRvTlvs |
Methods inherited from class AbstractRvCmd |
getRvTlvs, getServiceData, hasServiceData, writeRvData |
Methods inherited from class RvCommand |
getCapabilityBlock, getRvStatus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String ICONIDSTRING_DEFAULT
Constructor Detail |
public SendBuddyIconRvCmd(RecvRvIcbm icbm)
icbm
- an incoming send-buddy-icon RV ICBM commandpublic SendBuddyIconRvCmd(OldIconHashInfo hash, LiveWritable iconDataWriter)
write
method) to write the buddy icon to the OSCAR
connection upon sending this command. The "ID string" of the icon will
be set to ICONIDSTRING_DEFAULT
.
new
SendBuddyIconRvCmd(hash, iconDataWriter, ICONIDSTRING_DEFAULT)
.
hash
- an object representing a "hash" of the icon being senticonDataWriter
- an object containing the raw buddy icon dataFileWritable
public SendBuddyIconRvCmd(OldIconHashInfo hash, LiveWritable iconDataWriter, java.lang.String iconIdString)
write
method) to write the buddy icon to the
OSCAR connection upon sending this command.
hash
- an object representing a "hash" of the icon being senticonDataWriter
- an object containing the raw buddy icon dataiconIdString
- an "ID string" for this icon, like ICONIDSTRING_DEFAULT
Method Detail |
public final OldIconHashInfo getIconHash()
null
if no icon hash block is present in this
command.
null
if none is presentpublic final ByteBlock getIconData()
null
if this is an outgoing command.
null
if none was sent or if this is an outgoing
commandpublic final java.lang.String getIconIdString()
"AVT1picture.id"
.
null
if none
was sentprotected void writeRvTlvs(java.io.OutputStream out) throws java.io.IOException
AbstractRvCmd
writeRvTlvs
in class AbstractRvCmd
out
- the stream to which to write
java.io.IOException
- if an I/O error occursprotected void writeServiceData(java.io.OutputStream out) throws java.io.IOException
AbstractRvCmd
AbstractRvCmd.hasServiceData()
returns false
. The default
implementation of this method does not write any data to the stream.
writeServiceData
in class AbstractRvCmd
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 |