JML

net.sf.jqql.packets.out.disk
Class DeletePacket

java.lang.Object
  extended by net.sf.jqql.packets.Packet
      extended by net.sf.jqql.packets.OutPacket
          extended by net.sf.jqql.packets.DiskOutPacket
              extended by net.sf.jqql.packets.out.disk.DeletePacket

public class DeletePacket
extends DiskOutPacket

 delete request packet
 1. head
 2. id, 20 byte, fill 0 to fit
 Note: For file, id is 30 byte, will not unfit. And dir id is integer, when fill part 2, need to chang the integer to decimal string.
    part 2 is also friend's number in string form. This  is like other has set sharing with you. But If you don't want to share, 
    you can cancel it.
 3. property, 4 byte.


 删除请求包
 1. 头部
 2. id, 30字节,不足填0
 Note: 对于文件来说,id就是30字节,不会不足。而目录的id是整型的,填充2部分时,要把整型变成十进制字符串.
 2部分也可以是好友号码的字符串形式,这种情况相当于对方设置了对你共享,但是你不需要,那么你可以取消他对你的共享。
 3. 属性,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
DeletePacket(ByteBuffer buf, int length, QQUser user)
           
DeletePacket(QQUser user)
           
 
Method Summary
 String getId()
           
 String getPacketName()
           
 int getProperty()
           
protected  void putBody(ByteBuffer buf)
          initialize packet body 初始化包体
 void setId(String id)
           
 void setProperty(int property)
           
 
Methods inherited from class net.sf.jqql.packets.DiskOutPacket
decryptBody, encryptBody, equals, getBodyBytes, getCryptographStart, getFamily, getHeadLength, getLength, getLocalIp, getTailLength, hashCode, parseHeader, parseTail, postFill, putHead, putTail, setLocalIp, 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
getCommand, getHeader, getSequence, getSource, hash, isDuplicated, setDuplicated, setHeader, setSequence
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeletePacket

public DeletePacket(ByteBuffer buf,
                    int length,
                    QQUser user)
             throws PacketParseException
Throws:
PacketParseException

DeletePacket

public DeletePacket(QQUser user)
Method Detail

getPacketName

public String getPacketName()
Overrides:
getPacketName in class OutPacket
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

getId

public String getId()
Returns:
the id

setId

public void setId(String id)
Parameters:
id - the id to set

getProperty

public int getProperty()
Returns:
the property

setProperty

public void setProperty(int property)
Parameters:
property - the property to set

JML