* @see org.apache.jmeter.protocol.http.parser.HtmlParser#getEmbeddedResourceURLs(byte[], java.net.URL)
*/
public Iterator getEmbeddedResourceURLs(byte[] html, URL baseUrl, URLCollection urls)
{
Perl5Matcher matcher= (Perl5Matcher)localMatcher.get();
PatternMatcherInput input= (PatternMatcherInput)localInput.get();
// TODO: find a way to avoid the cost of creating a String here --
// probably a new PatternMatcherInput working on a byte[] would do
// better.
input.setInput(new String(html));
while (matcher.contains(input, pattern))
{
MatchResult match= matcher.getMatch();
String s;
if (log.isDebugEnabled())
log.debug("match groups " + match.groups());
// Check for a BASE HREF:
for (int g=1; g <= NUM_BASE_GROUPS && g <= match.groups(); g++)