DefaultFileIOProcessor

Represents default file IO operations with default system file IO tools

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
Link copied to clipboard
open override val useEncryption: Boolean = false

Functions

Link copied to clipboard
open override fun copy(source: File, destination: File)

Creates a copy of the source file to the destination file with encryption if its enabled

Link copied to clipboard
open override fun copyRaw(source: File, destination: File)

Creates a raw copy of the source file to the destination file without encryption if its enabled

Link copied to clipboard
open override fun move(source: File, destination: File)

Creates a copy of the source file to the destination file and deletes the source file. Encryption is applied if enabled.

Link copied to clipboard
open override fun openFileInputStream(sourceFile: File): InputStream

Returns OutputStream for the source file

Link copied to clipboard
open override fun openFileOutputStream(destinationFile: File): OutputStream

Returns OutputStream for the destination file

Link copied to clipboard
open override fun read(source: File): ByteArray?

Read ByteArray data from the source File

Link copied to clipboard
open override fun readImage(sourceUri: Uri, options: BitmapFactory.Options?): Bitmap?

Read Bitmap image from the source file Uri

open override fun readImage(source: File, options: BitmapFactory.Options?): Bitmap?

Read Bitmap image from the source File

Link copied to clipboard
open override fun write(byteArray: ByteArray, destination: File)

Write ByteArray data to the destination File

Link copied to clipboard
open override fun writeImage(bitmap: Bitmap, compressFormat: Bitmap.CompressFormat, quality: Int, destination: File)

Write Bitmap to the destination File