ResourceEncoder

interface ResourceEncoder<T> : Encoder<T>

An interface for writing data from a resource to some persistent data store (i.e. a local File cache).

Parameters

<T>

The type of the data contained by the resource.

Functions

Link copied to clipboard
abstract fun encode(    data: T,     file: File,     options: Options): Boolean
Writes the given data to the given output stream and returns True if the write completed successfully and should be committed.
Link copied to clipboard
abstract fun getEncodeStrategy(options: Options): EncodeStrategy

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard