Class SimpleTextMatcher

All Implemented Interfaces:
IHeaderMatcher

public class SimpleTextMatcher extends AbstractSimpleMatcher
A simple text matching IHeaderMatcher implementation.
  • Constructor Details

    • SimpleTextMatcher

      public SimpleTextMatcher(String pattern)
      Constructs the simple text matcher for the simple string.
      Parameters:
      pattern - The pattern to match. Will only match a single line from the input stream.
    • SimpleTextMatcher

      public SimpleTextMatcher(String id, String pattern)
      Constructs the simple text matcher for the simple string.
      Parameters:
      id - The id for this matcher.
      pattern - The pattern to match. Will only match a single line from the input stream.
  • Method Details

    • doMatch

      public boolean doMatch(String line)
      Description copied from class: AbstractSimpleMatcher
      Performs the actual match test.
      Specified by:
      doMatch in class AbstractSimpleMatcher
      Parameters:
      line - the line to check.
      Returns:
      true if the line matches, false otherwise.