JML

net.sf.jqql.packets.out
Class GetFriendListPacket

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.GetFriendListPacket

public class GetFriendListPacket
extends BasicOutPacket

 apply to get friend list packet, the content is:
 1. head
 2. two byte intial friend list returning position. Notice, the initial position is after sorted.
     For example, you have 9 friends, number form 10 to 100, every 10 digit a number. So if the two digit are assightd to 3,
    10, 20, 30 will not be returned.
 3. firend list returned is sorted or not, 1 byte, none 0 is sorted.
 4. 2 unknown byte
 5. tail
 请求得到好友列表的包,其内容为
 1. 头部
 2. 两个字节的起始好友列表返回位置,注意这个起始位置是排序之后的
    加入你有9个好友,号码从10到100每隔10位一个,那么如果这两个数
    字的值指定为3,那10, 20, 30就不会返回了
 3. 返回的好友列表是否排序,1个字节,非0则排序
 4. 2个未知字节
 5. 尾部
 

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
GetFriendListPacket(ByteBuffer buf, int length, QQUser user)
           
GetFriendListPacket(QQUser user)
          construstor 构造函数
 
Method Summary
 String getPacketName()
           
 char getStartPosition()
           
protected  void putBody(ByteBuffer buf)
          initialize packet body 初始化包体
 void setStartPosition(char startPosition)
           
 
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

GetFriendListPacket

public GetFriendListPacket(QQUser user)
construstor 构造函数


GetFriendListPacket

public GetFriendListPacket(ByteBuffer buf,
                           int length,
                           QQUser user)
                    throws PacketParseException
Parameters:
buf -
length -
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

setStartPosition

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

getStartPosition

public char getStartPosition()
Returns:
Returns the startPosition.

JML