Zip Resource Provider
The ZipResourceProvider is used for fetching resources from a ZIP archive. It reads ZIP archive data from a RandomAccessDataSource.
The ReadingSystemEngine uses the ZipResourceProvider class internally when you load an EPUB using a RandomAccessDataSource. You can also construct a new instance by calling one of:
When you create a ZipResourceProvider using ReadingSystemEngine.createZipResourceProvider
, the implementation will pre-calculate all byte ranges that will be used when fetching data chunks from the ZIP archive. This is a deterministic operation based on the ZipResourceProviderOptions
and the ZIP archive. ZipResourceProvider.zipArchiveInformation provides a complete list of the pre-calculated byte ranges.
Parameters
A source for data of the resource
Information about the resource and its structure
Cache size in kilobyte
Types
Functions
Synchronously fetches a resource from this ResourceProvider. The method returns when a response is available.
Same as fetch(), but only returns metadata about the resource.
Properties
Serialized version of ZipResourceProvider.zipArchiveInformation.