Encoder

interface Encoder<T>

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

Parameters

<T>

The type of the data that will be written.

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.

Inheritors

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