restore

fun restore(filename: String, context: Context): T?

Restores the commit log or cache from disk to memory.

Return

the restored object or null if unsuccessful

Parameters

filename

File to restore from.

context

The context.

Throws

When restoring the commit log failed.

When unmarshalling failed.


fun restore(input: InputStream?): T