net.kano.joscar.snaccmd.ssi
Class PreModCmd

java.lang.Object
  extended bySnacCommand
      extended bySsiCommand
          extended byPreModCmd

public class PreModCmd
extends SsiCommand

A SNAC command that WinAIM sends sometimes before modifying the buddy list. That is all that is currently known about this command. It looks like whether you send it or not you will be fine.

See Also:
PostModCmd
Source of this SNAC:
AIM client
SNAC command type:
Family 0x13, command 0x11

Field Summary
 
Fields inherited from class SsiCommand
CMD_ACTIVATE, CMD_CREATE_ITEMS, CMD_DATA_CHECK, CMD_DATA_REQ, CMD_DELETE_ITEMS, CMD_MOD_ACK, CMD_MODIFY_ITEMS, CMD_POST_MOD, CMD_PRE_MOD, CMD_RIGHTS, CMD_RIGHTS_REQ, CMD_SSI_DATA, CMD_UNCHANGED, FAMILY_INFO, FAMILY_SSI
 
Fields inherited from class SnacCommand
SNACFLAG_DEFAULT
 
Constructor Summary
  PreModCmd()
          Creates a new outgoing pre-SSI-data-modification command.
protected PreModCmd(SnacPacket packet)
          Generates a new pre-SSI-data-modification command from the given incoming SNAC packet.
 
Method Summary
 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
 

Constructor Detail

PreModCmd

protected PreModCmd(SnacPacket packet)
Generates a new pre-SSI-data-modification command from the given incoming SNAC packet.

Parameters:
packet - an incoming pre-SSI-data-modification command packet

PreModCmd

public PreModCmd()
Creates a new outgoing pre-SSI-data-modification command.

Method Detail

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()