net.sf.jqql.packets.out.disk
Class DeletePacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.OutPacket
net.sf.jqql.packets.DiskOutPacket
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
Fields inherited from class net.sf.jqql.packets.Packet |
bodyBuf, bodyDecrypted, command, crypter, ds, duplicated, header, log, sequence, source, user |
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 |
DeletePacket
public DeletePacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- Throws:
PacketParseException
DeletePacket
public DeletePacket(QQUser user)
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