loadResources

fun loadResources(source: Source, defaultHtmlEncoding: String): Resources(source)

Loads all entries from the given Source (a streaming ZIP).

Reads everything into memory; cheap to call but uses memory proportional to the EPUB's content size.


fun loadResources(fileSystem: FileSystem, zipPath: Path, defaultHtmlEncoding: String, lazyLoadedTypes: List<MediaType> = emptyList()): Resources(source)

Loads entries from the ZIP at zipPath in fileSystem.

Resources with a MediaType in lazyLoadedTypes are returned as LazyResource instances that read their bytes from the ZIP on demand.