使用epublib搜索epub内容

问题描述:

我正在使用epublib jar文件来读取我的android应用程序中的epub ebooks。我希望用户能够搜索电子书的内容。我发现有一个搜索包:nl.siegmann.epublib.search。我从here找到它。我如何使用epublib中的搜索功能? 非常感谢您的帮助。使用epublib搜索epub内容

看一看SearchIndex.java

Book your_book = ...; 
String your_search_word = "abc"; 
SearchIndex si = new SearchIndex(your_book); 
SearchResults sr = si.doSearch(your_search_word); 
// parse sr as needed