1

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.

Waynn Lue
  • 11,344
  • 8
  • 51
  • 76
m.taheri
  • 309
  • 3
  • 21

1 Answers1

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