public class BoyerMooreSearchMatcher extends SearchMatcher
SearchMatcher.MatchnoWordSep, returnValue, wholeWord| Constructor and Description | 
|---|
| BoyerMooreSearchMatcher(java.lang.String pattern,
                       boolean ignoreCase)Creates a new string literal matcher. | 
| BoyerMooreSearchMatcher(java.lang.String pattern,
                       boolean ignoreCase,
                       boolean wholeWord)Creates a new string literal matcher. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | match(java.lang.CharSequence text,
     boolean reverse)a good introduction to the Boyer-Moore fast string matching
  algorithm may be found on Moore's website at:
   http://www.cs.utexas.edu/users/moore/best-ideas/string-searching/ | 
| SearchMatcher.Match | nextMatch(java.lang.CharSequence text,
         boolean start,
         boolean end,
         boolean firstTime,
         boolean reverse)Returns the offset of the first match of the specified text
 within this matcher. | 
| java.lang.String | toString() | 
isWholeWord, setNoWordSeppublic BoyerMooreSearchMatcher(java.lang.String pattern,
                               boolean ignoreCase)
pattern - the search patternignoreCase - true if you want to ignore casepublic BoyerMooreSearchMatcher(java.lang.String pattern,
                               boolean ignoreCase,
                               boolean wholeWord)
pattern - the search patternignoreCase - true if you want to ignore casewholeWord - true to search for whole word onlypublic SearchMatcher.Match nextMatch(java.lang.CharSequence text, boolean start, boolean end, boolean firstTime, boolean reverse) throws java.lang.InterruptedException
SearchMatchernextMatch in class SearchMatchertext - The text to search instart - True if the start of the text is the beginning of a lineend - True if the end of the text is the end of a linefirstTime - If false and the search string matched at the start
 offset with length zero, automatically find next matchreverse - If true, searching will be performed in a backward
 direction.SearchMatcher.Match object.java.lang.InterruptedExceptionpublic int match(java.lang.CharSequence text,
                 boolean reverse)
          throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic java.lang.String toString()
toString in class java.lang.Object