Package-level declarations
Types
Link copied to clipboard
Marker interface for source-specific access errors.
Link copied to clipboard
Link copied to clipboard
Errors produced when trying to decode content.
Link copied to clipboard
Link copied to clipboard
An IOException wrapping a ReadError.
Functions
Link copied to clipboard
fun Readable.asInputStream(range: LongRange? = null, wrapError: (ReadError) -> IOException = { ReadException(it) }): InputStream
Wraps a Readable into an InputStream.
Link copied to clipboard
Reads the full content as a Bitmap.
Link copied to clipboard
Content parsed from JSON.
Link copied to clipboard
inline suspend fun <R> Try<ByteArray, ReadError>.decodeOrElse(decode: (value: ByteArray) -> Try<R, DecodeError>, recover: (DecodeError.Decoding) -> R): Try<R, ReadError>
Link copied to clipboard
inline suspend fun <R> Try<ByteArray, ReadError>.decodeOrNull(decode: (value: ByteArray) -> Try<R, DecodeError>): R?
Link copied to clipboard
Readium Web Publication Manifest parsed from the content.
Readium Web Publication Manifest parsed from JSON.
Link copied to clipboard
Content as plain text.
Link copied to clipboard
Content as an XML document.
Link copied to clipboard
inline suspend fun <R> Readable.readDecodeOrElse(decode: (value: ByteArray) -> Try<R, DecodeError>, recover: (ReadError) -> R): R
inline suspend fun <R> Readable.readDecodeOrElse(decode: (value: ByteArray) -> Try<R, DecodeError>, recoverRead: (ReadError) -> R, recoverDecode: (DecodeError.Decoding) -> R): R
Link copied to clipboard
inline suspend fun <R> Readable.readDecodeOrNull(decode: (value: ByteArray) -> Try<R, DecodeError>): R?
inline suspend fun <S> Container<Readable>.readDecodeOrNull(url: Url, decode: (ByteArray) -> Try<S, DecodeError>): S?
Link copied to clipboard