public static AbstractMessage unserialize( byte[] rawData , boolean asInternalCopy )
    {
    	RawDataBuffer rawIn = new RawDataBuffer(rawData);
        byte type = rawIn.readByte();
        AbstractMessage message = MessageType.createInstance(type);
        message.initializeFromRaw(rawIn);
        if (asInternalCopy)
        	message.setInternalCopy(true);
        
        return message;
    }
public static AbstractMessage unserialize ( byte [ ] rawData , boolean asInternalCopy ) { RawDataBuffer rawIn = new RawDataBuffer ( rawData ) ; byte type = rawIn . readByte ( ) ; AbstractMessage message = MessageType . createInstance ( type ) ; message . initializeFromRaw ( rawIn ) ; if ( asInternalCopy ) message . setInternalCopy ( true ) ; return message ; }
Unserialize a message