Lines 23-28
import java.nio.charset.Charset;
Link Here
|
23 |
import java.util.Collections; |
23 |
import java.util.Collections; |
24 |
import java.util.Iterator; |
24 |
import java.util.Iterator; |
25 |
|
25 |
|
|
|
26 |
import org.apache.commons.lang3.StringUtils; |
26 |
import org.apache.commons.lang3.Validate; |
27 |
import org.apache.commons.lang3.Validate; |
27 |
import org.apache.commons.lang3.tuple.ImmutableTriple; |
28 |
import org.apache.commons.lang3.tuple.ImmutableTriple; |
28 |
import org.apache.commons.lang3.tuple.Triple; |
29 |
import org.apache.commons.lang3.tuple.Triple; |
Lines 70-82
public class CssParser implements LinkExtractorParser {
Link Here
|
70 |
final URLCollection urlCollection = orDefault(CSS_URL_CACHE.get(triple), EMPTY_URL_COLLECTION); |
71 |
final URLCollection urlCollection = orDefault(CSS_URL_CACHE.get(triple), EMPTY_URL_COLLECTION); |
71 |
|
72 |
|
72 |
if (LOG.isDebugEnabled()) { |
73 |
if (LOG.isDebugEnabled()) { |
73 |
StringBuilder builder = new StringBuilder(); |
74 |
LOG.debug("Parsed:" + baseUrl + ", got:" + StringUtils.join(urlCollection, ",")); |
74 |
for (Iterator<URL> iterator = urlCollection.iterator(); iterator |
|
|
75 |
.hasNext();) { |
76 |
URL urlString = iterator.next(); |
77 |
builder.append(urlString).append(','); |
78 |
} |
79 |
LOG.debug("Parsed:" + baseUrl + ", got:" + builder.toString()); |
80 |
} |
75 |
} |
81 |
|
76 |
|
82 |
return urlCollection.iterator(); |
77 |
return urlCollection.iterator(); |