Class MatchUtil

java.lang.Object
com.norconex.importer.util.MatchUtil

public final class MatchUtil extends Object
  • Method Details

    • matchesContentType

      public static boolean matchesContentType(TextMatcher matcher, Doc doc)
      Null-safe matches a document record content type.
      Parameters:
      matcher - text matcher
      doc - the document on which to assess the content type
      Returns:
      true if matches or if either arguments or content type are null
    • matchesContentType

      public static boolean matchesContentType(TextMatcher matcher, ContentType contentType)
      Null-safe matches a content type.
      Parameters:
      matcher - text matcher
      contentType - the content type to match
      Returns:
      true if matches or if either arguments are null