-
public interface Encoder<T>An interface for writing data to some persistent data store (i.e. a local File cache).
-
-
Method Summary
-
-
Method Detail
-
encode
abstract boolean encode(@NonNull() T data, @NonNull() File file, @NonNull() Options options)
Writes the given data to the given output stream and returns True if the write completedsuccessfully and should be committed.
- Parameters:
data- The data to write.file- The file to write the data to.options- The set of options to apply when encoding.
-
-
-
-