Package-level declarations

Types

Link copied to clipboard
sealed class ColibrioResult<out T>

Represents result of an operation. Can be either ColibrioResult.Success holding data of type T, or ColibrioResult.Error holding exception of type ColibrioException.

Link copied to clipboard

A RandomAccessDataSource is used for reading chunks of bytes from file.

Link copied to clipboard
class RangeRequestNotSupportedException(val url: String, errorMessage: String? = null) : ColibrioException

The caller tried to make a Range request, but the provider did not support range requests for that URL.

Link copied to clipboard

The ResourceProvider is an abstraction hiding the details about resource retrieval from the reading system.

Link copied to clipboard
class ResourceRequestOptions(val accept: List<String>? = null, val range: ByteRangeRequest? = null)
Link copied to clipboard

Describes a response from ResourceProvider.fetch. It contains metadata about the resource and methods for reading the resource body.

Link copied to clipboard

There was a problem retrieving the resource at that time, but it might work if the resource request is retried later. For example, the user temporarily lost internet connection in a HTTP ResourceProvider.

Link copied to clipboard

The ZipResourceProvider is used for fetching resources from a ZIP archive. It reads ZIP archive data from a RandomAccessDataSource.