JML

net.sf.jqql.packets.in._05
Class Unknown05InPacket

java.lang.Object
  extended by net.sf.jqql.packets.Packet
      extended by net.sf.jqql.packets.InPacket
          extended by net.sf.jqql.packets._05InPacket
              extended by net.sf.jqql.packets.in._05.Unknown05InPacket

public class Unknown05InPacket
extends _05InPacket

unknown type 05 series packet 未知类型的05系列包

Author:
luma

Field Summary
 
Fields inherited from class net.sf.jqql.packets.Packet
bodyBuf, bodyDecrypted, command, crypter, ds, duplicated, header, log, sequence, source, user
 
Constructor Summary
Unknown05InPacket(ByteBuffer buf, int length, QQUser user)
           
Unknown05InPacket(ByteBuffer buf, QQUser user)
           
 
Method Summary
protected  int getCryptographStart()
           
protected  void parseBody(ByteBuffer buf)
          parse packet body, from begin position of buf 解析包体,从buf的开头位置解析起
 
Methods inherited from class net.sf.jqql.packets._05InPacket
decryptBody, encryptBody, getBodyBytes, getFamily, getHeadLength, getLength, getPacketName, getQqNum, getTailLength, parseHeader, parseTail, putBody, putHead, putTail, setQqNum, toString
 
Methods inherited from class net.sf.jqql.packets.InPacket
validateHeader
 
Methods inherited from class net.sf.jqql.packets.Packet
dump, equals, getCommand, getHeader, getSequence, getSource, hash, hashCode, isDuplicated, setDuplicated, setHeader, setSequence
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Unknown05InPacket

public Unknown05InPacket(ByteBuffer buf,
                         int length,
                         QQUser user)
                  throws PacketParseException
Parameters:
buf -
length -
user -
Throws:
PacketParseException

Unknown05InPacket

public Unknown05InPacket(ByteBuffer buf,
                         QQUser user)
                  throws PacketParseException
Parameters:
buf -
user -
Throws:
PacketParseException
Method Detail

getCryptographStart

protected int getCryptographStart()
Specified by:
getCryptographStart in class Packet
Returns:
start position of cryptograph, relative to the first byte of packet body. if this packet is unknown packet, return -1, this method only available to some protocol family. 密文的起始位置,这个位置是相对于包体的第一个字节来说的,如果这个包是未知包, 返回-1,这个方法只对某些协议族有意义

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 如果解析出错

JML