TempFileWritingStrategy

A WritingStrategy that writes to a temporary file and writes to the only when all data was written.

Constructors

Link copied to clipboard
constructor(@NonNull tempFile: File)
constructor(@NonNull context: Context)

Functions

Link copied to clipboard
open fun finishWriting()
Called by the OutputStreamAdapter once the last byte was written.
Link copied to clipboard
open fun prepare(@NonNull adapter: OutputStreamAdapter)
Called by the OutputStreamAdapter before the first byte is written.
Link copied to clipboard
open fun write(@NonNull data: Array<Byte>)
Called by the OutputStreamAdapter with the data that should be written.