net.sf.jqql.packets.out.disk
Class CreatePacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.OutPacket
net.sf.jqql.packets.DiskOutPacket
net.sf.jqql.packets.out.disk.CreatePacket
public class CreatePacket
- extends DiskOutPacket
create file or dir request packet
1. head
2. parent dir id, 4 byte
3. property, 4 byte
4. length, 4 byte
5. length, 4 byte
Note: 2 length, unknow its reason. For dir, length is 0
6. name length, 2 byte
7. name
8. unknwon 4 byte
创建文件或者目录请求包
1. 头部
2. 父目录id,4字节
3. 属性,4字节
4. 长度,4字节
5. 长度,4字节
Note: 2个长度,不知原因。对于目录,长度是0
6. 名称长度,2字节
7. 名称
8. 未知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 |
CreatePacket
public CreatePacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- Throws:
PacketParseException
CreatePacket
public CreatePacket(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
getName
public String getName()
- Returns:
- the name
setName
public void setName(String name)
- Parameters:
name - the name to set
getParentId
public int getParentId()
- Returns:
- the parentId
setParentId
public void setParentId(int parentId)
- Parameters:
parentId - the parentId to set
getProperty
public int getProperty()
- Returns:
- the property
setProperty
public void setProperty(int property)
- Parameters:
property - the property to set
getLength
public int getLength()
- Returns:
- the length
setLength
public void setLength(int length)
- Parameters:
length - the length to set