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