Read an epub file
This is an example of how to read an epub file using epublib.
// read epub file EpubReader epubReader = new EpubReader(); Book book = epubReader.readEpub(new FileInputStream(“mybook.epub”)); // print the first title List<String> titles = book.getMetadata().getTitles(); System.out.println(“book title:” + (titles.isEmpty() ? “book has no title” : titles.get(0)));