Package com.norconex.importer.util
Class MatchUtil
java.lang.Object
com.norconex.importer.util.MatchUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanmatchesContentType(TextMatcher matcher, ContentType contentType) Null-safe matches a content type.static booleanmatchesContentType(TextMatcher matcher, Doc doc) Null-safe matches a document record content type.
-
Method Details
-
matchesContentType
Null-safe matches a document record content type.- Parameters:
matcher- text matcherdoc- the document on which to assess the content type- Returns:
trueif matches or if either arguments or content type arenull
-
matchesContentType
Null-safe matches a content type.- Parameters:
matcher- text matchercontentType- the content type to match- Returns:
trueif matches or if either arguments arenull
-