net.sf.jqql.packets.out.disk
Class MovePacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.OutPacket
net.sf.jqql.packets.DiskOutPacket
net.sf.jqql.packets.out.disk.MovePacket
public class MovePacket
- extends DiskOutPacket
move file or dir request packet
1. head
2. id, 30 byte, fill 0 to fit
3. attribute, 4 byte
4. current dir id, 4 byte
5. dir id to move to , 4 byte
移动文件或目录的请求包
1. 头部
2. id, 30字节,不足填0
Note: 对于目录来说,要把id转换为10进制字符串
3. 属性,4字节
4. 当前目录id,4字节
5. 移动到的目录id,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 |
MovePacket
public MovePacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- Throws:
PacketParseException
MovePacket
public MovePacket(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
getFromId
public int getFromId()
- Returns:
- the fromId
setFromId
public void setFromId(int fromId)
- Parameters:
fromId
- the fromId to set
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
getToId
public int getToId()
- Returns:
- the toId
setToId
public void setToId(int toId)
- Parameters:
toId
- the toId to set