Package it.unimi.dsi.law.warc.filters
Class HostEndsWith
public class HostEndsWith extends AbstractFilter<URI>
Accepts only URIs whose host ends with (case-insensitively) a certain suffix.
Note that apply(URI)
will throw an IllegalArgumentException
if the argument has a null host.
-
Field Summary
Fields inherited from interface it.unimi.dsi.law.warc.filters.Filter
FILTER_PACKAGE_NAME
-
Constructor Summary
Constructors Constructor Description HostEndsWith(String suffix)
Creates a filter that only accepts URLs with a given suffix. -
Method Summary
Methods inherited from class it.unimi.dsi.law.warc.filters.AbstractFilter
toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.common.base.Predicate
test
-
Constructor Details
-
HostEndsWith
Creates a filter that only accepts URLs with a given suffix.- Parameters:
suffix
- the accepted suffix.
-
-
Method Details