ImageSource

sealed interface ImageSource : Closeable

Provides access to the image data to be decoded.

Types

Link copied to clipboard
abstract class Metadata

A marker class for metadata for an ImageSource.

Properties

Link copied to clipboard
abstract val fileSystem: FileSystem

The FileSystem which contains the file.

Link copied to clipboard

Return the Metadata for this ImageSource.

Functions

Link copied to clipboard
abstract fun file(): Path

Return a Path that resolves to a file containing this ImageSource's data.

Link copied to clipboard
abstract fun fileOrNull(): Path?

Return a Path that resolves to a file containing this ImageSource's data if one has already been created. Else, return 'null'.

Link copied to clipboard
abstract fun source(): BufferedSource

Return a BufferedSource to read this ImageSource.

Link copied to clipboard
abstract fun sourceOrNull(): BufferedSource?

Return the BufferedSource to read this ImageSource if one has already been created. Else, return 'null'.