public static AbstractPacket unserializeFrom( RawDataBuffer in )
    {
        byte type = in.readByte(); 
        AbstractPacket packet = PacketType.createInstance(type);
        packet.unserializeFrom(in);
        
        return packet;
    }
public static AbstractPacket unserializeFrom ( RawDataBuffer in ) { byte type = in . readByte ( ) ; AbstractPacket packet = PacketType . createInstance ( type ) ; packet . unserializeFrom ( in ) ; return packet ; }
Unserialize a packet from the given input stream