net.sf.jqql.packets.in.disk
Class ListMyDiskDirReplyPacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.InPacket
net.sf.jqql.packets.DiskInPacket
net.sf.jqql.packets.in.disk.ListMyDiskDirReplyPacket
public class ListMyDiskDirReplyPacket
- extends DiskInPacket
reply packet to list my network disk dir
1. head
2. dir count , 4 byte
3. dir ID, 4 byte
4. attribute, 4 byte
5. parent dir id, 4 byte
6. dir creating time, 4 byte
7. dir modified time , 4 byte
8. dir name length, 2 byte
9. dir name
10. If there are more dir, repeat part 3-8
11. file count, 4 byte
12. file ID string, 30 byte
13. attribute, 4 byte
14. file length, 4 byte
15. file length , 4 byte
Note: 14, 15 have the same content, hard to understand
16. parent dir id, 4 byte
17. file creation time, 4 byte
18. file modified time, 4 byte
19. file name length, 2 byte
20. file name
21. file name2 length, 2byte
22. file name 2
Note: what does file name 2 use for? I don't known yet. at present, only custom head use this field
23. file content length, 2 byte
24. file content string
Note: The file content is not long, used in network favorites to present address, not used in other situation.
25. If there are more files, repeat part 12 -24
列出我的网络硬盘目录回复包
1. 头部
2. 目录个数,4字节
3. 目录ID,4字节
4. 属性,4字节
5. 父目录id,4字节
6. 目录创建时间,4字节
7. 目录修改时间,4字节
8. 目录名长度,2字节
9. 目录名
10. 如果有更多目录,重复3-8部分
11. 文件个数,4字节
12. 文件ID字符串,30字节
13. 属性,4字节
14. 文件长度,4字节
15. 文件长度,4字节
Note: 14, 15内容一样,非常费解
16. 父目录id,4字节
17. 文件创建时间,4字节
18. 文件修改时间,4字节
19. 文件名长度,2字节
20. 文件名
21. 文件名2长度,2字节
22. 文件名2
Note: 文件名2是用来干什么的,目前还不清楚。目前只有自定义头像使用了这个字段
23. 文件内容的长度,2字节
24. 文件内容字符串
Note: 所谓文件内容,长度不长,一般只用于网络收藏夹,用来表示地址。其他情况这个字段一般不用
25. 如果有更多文件,重复12-24部分
- 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.DiskInPacket |
decryptBody, encryptBody, equals, getBodyBytes, getCryptographStart, getFamily, getHeadLength, getLength, getTailLength, hashCode, parseHeader, parseTail, putBody, putHead, putTail |
dirs
public List<Directory> dirs
files
public List<File> files
ListMyDiskDirReplyPacket
public ListMyDiskDirReplyPacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- Throws:
PacketParseException
getPacketName
public String getPacketName()
- Overrides:
getPacketName
in class Packet
- Returns:
- descriptive name of packet
包的描述性名称
parseBody
protected void parseBody(ByteBuffer buf)
throws PacketParseException
- Description copied from class:
Packet
- parse packet body, from begin position of buf
解析包体,从buf的开头位置解析起
- Specified by:
parseBody
in class Packet
- Parameters:
buf
- ByteBuffer
- Throws:
PacketParseException
- if parse error
如果解析出错
getDiskOwner
public int getDiskOwner()
- Returns:
- the diskOwner
setDiskOwner
public void setDiskOwner(int diskOwner)
- Parameters:
diskOwner
- the diskOwner to set