Java reads the passed native data