gpt4 book ai didi

android - 使用 epublib 搜索 epub 内容

转载 作者:行者123 更新时间:2023-11-29 21:10:11 27 4
gpt4 key购买 nike

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

最佳答案

看看 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

关于android - 使用 epublib 搜索 epub 内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23168623/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com