Class PathEndsWithOneOf

java.lang.Object
it.unimi.dsi.law.warc.filters.AbstractFilter<URI>
it.unimi.dsi.law.warc.filters.PathEndsWithOneOf
All Implemented Interfaces:
com.google.common.base.Predicate<URI>, Filter<URI>, Predicate<URI>

public class PathEndsWithOneOf
extends AbstractFilter<URI>
Accepts only URIs whose path ends (case-insensitively) with one of a given set of suffixes.
  • Constructor Details

    • PathEndsWithOneOf

      public PathEndsWithOneOf​(String[] suffixes)
      Creates a filter that only accepts URLs whose path ends with one of a given set of suffixes.
      Parameters:
      suffixes - the accepted suffixes.
  • Method Details