EpubReader

Reads an EPUB file.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun readEpub(resources: Resources, result: Book = Book()): Book

Builds a Book from already-loaded Resources.

fun readEpub(source: Source, encoding: String = Constants.CHARACTER_ENCODING): Book

Reads an EPUB from an okio Source. Loads all resource bytes into memory.

fun readEpub(fileSystem: FileSystem, zipPath: Path, encoding: String = Constants.CHARACTER_ENCODING, lazyLoadedTypes: List<MediaType> = emptyList()): Book

Reads an EPUB from a ZIP file in the given filesystem at zipPath.