I am using epublib jar file to read epub ebooks in my android application. I want the user be able to search ebook contents. I have figured out there is a package for searching: nl.siegmann.epublib.search. I found it from here. How can i use the search function in epublib? Thanks a lot in advance for helping.
Asked
Active
Viewed 849 times
1 Answers
2
Have a look at 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

Alberto Pettarin
- 894
- 6
- 12