public class SearchMatcher extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
SearchMatcher.SearchResultImpl
A local search result.
|
| Constructor and Description |
|---|
SearchMatcher(Engine engine,
QueryItem[] queries)
Creates a new SearchMatcher.
|
SearchMatcher(WikiEngine engine,
QueryItem[] queries)
Deprecated.
kept for compatibility with page/attachment providers not using public API. Use
SearchMatcher(Engine, QueryItem)
instead. |
| 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(Engine engine, QueryItem[] queries)
engine - The Enginequeries - A list of queries@Deprecated public SearchMatcher(WikiEngine engine, QueryItem[] queries)
SearchMatcher(Engine, QueryItem)
instead.engine - The Enginequeries - 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 failsCopyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.