EpubResourceProvider

class EpubResourceProvider(fileSystem: FileSystem, zipPath: Path) : LazyResourceProvider(source)

Lazily reads resources from an EPUB on disk.

Each call to getResourceBytes opens the ZIP and seeks straight to the requested entry via its central directory, without streaming the archive.

Constructors

Link copied to clipboard
constructor(fileSystem: FileSystem, zipPath: Path)

Functions

Link copied to clipboard
open override fun getResourceBytes(href: String): ByteArray