ImageSource

sealed class ImageSource : Closeable

Provides access to the image data to be decoded.

Types

Metadata
Link copied to clipboard
abstract class Metadata
A marker class for metadata for an ImageSource.

Functions

file
Link copied to clipboard
abstract fun file(): Path
Return a Path that resolves to a file containing this ImageSource's data.
fileOrNull
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.
source
Link copied to clipboard
abstract fun source(): BufferedSource
Return a BufferedSource to read this ImageSource.
sourceOrNull
Link copied to clipboard
abstract fun sourceOrNull(): BufferedSource?
Return the BufferedSource to read this ImageSource if one has already been created.

Properties

fileSystem
Link copied to clipboard
abstract val fileSystem: FileSystem
The FileSystem which contains the file.
metadata
Link copied to clipboard
abstract val metadata: ImageSource.Metadata?
Return the Metadata for this ImageSource.