Match[] getNextMatch( byte[] pattern )
	{
		Match[] matched = new Match[1];
		// last pattern may have found nothing
		if ( patternSame(pattern) && matches != null 
			&& matches.length > 0 )
		{
			if (  matchIndex == matches.length )
				matchIndex = 0;
			matched[0] = matches[matchIndex++];
			return matched;
		}
		else
			return new Match[0];
	}