|
JML | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jqql.packets._05FamilyParser
public class _05FamilyParser
parser of 05series packet 05系列包的解析器
| Constructor Summary | |
|---|---|
_05FamilyParser()
|
|
| 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 len,
QQUser user)
parse a input packet object from buf current position, complete pointer is after length 从buf当前位置解析出一个输入包对象,解析完毕后指针位于length之后 |
OutPacket |
parseOutcoming(ByteBuffer buf,
int len,
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 _05FamilyParser()
| Method Detail |
|---|
public boolean isDuplicate(InPacket in)
IParser
isDuplicate in interface IParserpublic boolean accept(ByteBuffer buf)
IParser
accept in interface IParserbuf - ByteBuffer
public int getLength(ByteBuffer buf)
getLength in interface IParserbuf - TODO
public InPacket parseIncoming(ByteBuffer buf,
int len,
QQUser user)
throws PacketParseException
IParser
parseIncoming in interface IParserbuf - ByteBufferlen - packet length
包长度user - QQ user object
QQ用户对象
PacketParseException
public OutPacket parseOutcoming(ByteBuffer buf,
int len,
QQUser user)
throws PacketParseException
IParser
parseOutcoming in interface IParserbuf - ByteBufferlen - packet length
包长度user - QQ user object
QQ用户对象
PacketParseExceptionpublic boolean isDuplicatedNeedReply(InPacket in)
isDuplicatedNeedReply in interface IParserin - received packet
收到的包
public int relocate(ByteBuffer buf)
IParser
relocate in interface IParserbuf - ByteBuffer
public PacketHistory getHistory()
getHistory in interface IParser
|
JML | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||