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