|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jqql.packets.DiskFamilyParser
public class DiskFamilyParser
disk protocol family packet parser disk协议族包解析器
Constructor Summary | |
---|---|
DiskFamilyParser()
|
Method Summary | |
---|---|
boolean |
accept(ByteBuffer buf)
judge parser whether can deal with this packet, judge can not touch buf pointer position 判断此parser是否可以处理这个包,判断不能影响到buf的指针位置 |
PacketHistory |
getHistory()
|
int |
getLength(ByteBuffer buf)
|
boolean |
isDuplicate(InPacket in)
checkout this input packet whether is duplicate 检查这个输入包是否重复 |
boolean |
isDuplicatedNeedReply(InPacket in)
|
InPacket |
parseIncoming(ByteBuffer buf,
int length,
QQUser user)
parse a input packet object from buf current position, complete pointer is after length 从buf当前位置解析出一个输入包对象,解析完毕后指针位于length之后 |
OutPacket |
parseOutcoming(ByteBuffer buf,
int length,
QQUser user)
parse a output packet object from buf current position, complete pointer is after length 从buf当前位置解析出一个输出包对象,解析完毕后指针位于length之后 |
int |
relocate(ByteBuffer buf)
suppose buff current position is a packet, return initial position of next packet. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiskFamilyParser()
Method Detail |
---|
public boolean accept(ByteBuffer buf)
IParser
accept
in interface IParser
buf
- ByteBuffer
public int getLength(ByteBuffer buf)
getLength
in interface IParser
buf
- TODO
public InPacket parseIncoming(ByteBuffer buf, int length, QQUser user) throws PacketParseException
IParser
parseIncoming
in interface IParser
buf
- ByteBufferlength
- packet length
包长度user
- QQ user object
QQ用户对象
PacketParseException
public OutPacket parseOutcoming(ByteBuffer buf, int length, QQUser user) throws PacketParseException
IParser
parseOutcoming
in interface IParser
buf
- ByteBufferlength
- packet length
包长度user
- QQ user object
QQ用户对象
PacketParseException
public boolean isDuplicatedNeedReply(InPacket in)
isDuplicatedNeedReply
in interface IParser
in
- received packet
收到的包
public int relocate(ByteBuffer buf)
IParser
relocate
in interface IParser
buf
- ByteBuffer
public PacketHistory getHistory()
getHistory
in interface IParser
public boolean isDuplicate(InPacket in)
IParser
isDuplicate
in interface IParser
|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |