JML

net.sf.jqql.packets.out
Class UserPropertyOpPacket

java.lang.Object
  extended by net.sf.jqql.packets.Packet
      extended by net.sf.jqql.packets.OutPacket
          extended by net.sf.jqql.packets.BasicOutPacket
              extended by net.sf.jqql.packets.out.UserPropertyOpPacket

public class UserPropertyOpPacket
extends BasicOutPacket

 user property operation request packet
 1. head
 2. subcomand ,1 byte
 3. init position, 2 byte
 4. tail

 用户属性操作请求包
 1. 头部
 2. 子命令,1字节
 3. 起始位置,2字节
 4. 尾部
 

Author:
luma

Field Summary
 
Fields inherited from class net.sf.jqql.packets.OutPacket
ack, key, resendCountDown, sendCount, seq, timeout
 
Fields inherited from class net.sf.jqql.packets.Packet
bodyBuf, bodyDecrypted, command, crypter, ds, duplicated, header, log, sequence, source, user
 
Constructor Summary
UserPropertyOpPacket(ByteBuffer buf, int length, QQUser user)
           
UserPropertyOpPacket(QQUser user)
           
 
Method Summary
 String getPacketName()
           
 char getStartPosition()
           
 byte getSubCommand()
           
protected  void putBody(ByteBuffer buf)
          initialize packet body 初始化包体
 void setStartPosition(char startPosition)
           
 void setSubCommand(byte subCommand)
           
 
Methods inherited from class net.sf.jqql.packets.BasicOutPacket
decryptBody, encryptBody, getBodyBytes, getCryptographStart, getFamily, getHeadLength, getLength, getTailLength, parseHeader, parseTail, postFill, putHead, putTail, toString, validateHeader
 
Methods inherited from class net.sf.jqql.packets.OutPacket
dump, fill, getKey, getNextSeq, getSendCount, getTimeout, needAck, needResend, parseBody, setKey, setSendCount, setTimeout
 
Methods inherited from class net.sf.jqql.packets.Packet
equals, getCommand, getHeader, getSequence, getSource, hash, hashCode, isDuplicated, setDuplicated, setHeader, setSequence
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserPropertyOpPacket

public UserPropertyOpPacket(QQUser user)

UserPropertyOpPacket

public UserPropertyOpPacket(ByteBuffer buf,
                            int length,
                            QQUser user)
                     throws PacketParseException
Throws:
PacketParseException
Method Detail

getPacketName

public String getPacketName()
Overrides:
getPacketName in class BasicOutPacket
Returns:
descriptive name of packet 包的描述性名称

putBody

protected void putBody(ByteBuffer buf)
Description copied from class: Packet
initialize packet body 初始化包体

Specified by:
putBody in class Packet
Parameters:
buf - ByteBuffer

getSubCommand

public byte getSubCommand()
Returns:
Returns the subCommand.

setSubCommand

public void setSubCommand(byte subCommand)
Parameters:
subCommand - The subCommand to set.

getStartPosition

public char getStartPosition()
Returns:
Returns the startPosition.

setStartPosition

public void setStartPosition(char startPosition)
Parameters:
startPosition - The startPosition to set.

JML