有哪些FOSS库可以读取epub,mobi,pdf或其他适用于Android或Java的电子书格式?
Try epublib for android. It is released under the GNU Lesser General Public License .
It also has some quick start examples :
EpubReader epubReader = new EpubReader();
Book book = epubReader.readEpub(new FileInputStream("mybook.epub"));
// set title
book.getMetadata().setTitles(new ArrayList<String>() {{ add("an awesome book");}});
// write epub
EpubWriter epubWriter = new EpubWriter();
epubWriter.write(book, new FileOutputStream("mynewbook.epub"));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.