
public class SearchMatcher extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
SearchMatcher.SearchResultImpl
A local search result.
|
| Constructor and Description |
|---|
SearchMatcher(WikiEngine engine,
QueryItem[] queries)
Creates a new SearchMatcher.
|
| Modifier and Type | Method and Description |
|---|---|
SearchResult |
matchPageContent(String wikiname,
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(String wikiname, String pageText) throws IOException
This method would benefit of regexps (1.4) and streaming. FIXME!
wikiname - The name of the pagepageText - The content of the pageIOException - If reading page content failsCopyright © 2001-2018 The Apache Software Foundation. All rights reserved.