JML

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

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

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
MovePacket(ByteBuffer buf, int length, QQUser user)
           
MovePacket(QQUser user)
           
 
Method Summary
 int getFromId()
           
 String getId()
           
 String getPacketName()
           
 int getProperty()
           
 int getToId()
           
protected  void putBody(ByteBuffer buf)
          initialize packet body 初始化包体
 void setFromId(int fromId)
           
 void setId(String id)
           
 void setProperty(int property)
           
 void setToId(int toId)
           
 
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

MovePacket

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

MovePacket

public MovePacket(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

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

JML