public class SearchMatcher
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| class  | SearchMatcher.SearchResultImplA local search result. | 
| Constructor and Description | 
|---|
| SearchMatcher(WikiEngine engine,
             QueryItem[] queries)Creates a new SearchMatcher. | 
| Modifier and Type | Method and Description | 
|---|---|
| SearchResult | matchPageContent(java.lang.String wikiname,
                java.lang.String pageText)Compares the page content, available through the given stream, to the
 query items of this matcher. | 
public SearchMatcher(WikiEngine engine, QueryItem[] queries)
engine - The WikiEnginequeries - A list of queriespublic SearchResult matchPageContent(java.lang.String wikiname, java.lang.String pageText) throws java.io.IOException
This method would benefit of regexps (1.4) and streaming. FIXME!
wikiname - The name of the pagepageText - The content of the pagejava.io.IOException - If reading page content failsstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.