Package-level declarations

Types

Link copied to clipboard
open class AndroidInputStreamByteReader(inputStream: InputStream, val contentLength: Long) : ByteReader

Provides way to read from Android ContentReolver that should work on all versions.

Link copied to clipboard

ByteArray backed ByteReader

Link copied to clipboard
interface ByteReader : Closeable
Link copied to clipboard
fun interface Closeable
Link copied to clipboard

This class buffers the reading from the original ByteReader and provides random access needed for parsing TIFF files.

Link copied to clipboard
open class JvmInputStreamByteReader(inputStream: InputStream, val contentLength: Long) : ByteReader
Link copied to clipboard
class KotlinIoSourceByteReader(source: Source, val contentLength: Long) : ByteReader
Link copied to clipboard
class KtorByteReadChannelByteReader(channel: ByteReadChannel, val contentLength: Long, bufferSize: Long = DEFAULT_BUFFER_SIZE) : ByteReader

This class allows streaming data from a cloud service and read only the headers.

Link copied to clipboard
class KtorInputByteReader(byteReadPacket: ByteReadPacket) : ByteReader

This class provides a convenient way to parse metadata directly from a Ktor HttpClient Input. It is particularly useful for parsing metadata of files hosted on a cloud service, which is a common use case.

Link copied to clipboard

Random access to the bytes are required to read TIFF files where an offset can even be lower than the current position.

Functions

Link copied to clipboard

Executes the code and closes the source after.