DatabaseFileManager

Functions

Link copied to clipboard
open fun cleanDir(DirPath: String)
Delete the directory and then re-create a empty one.
Link copied to clipboard
open fun cleanFilesWithHeader(@NonNull dirPath: String, fileHeader: String)
It will remove all files in the directory whose name starts with fileHeader.
Link copied to clipboard
Link copied to clipboard
open fun readFile(filePath: String): Array<Byte>
Read byte[] From File
Link copied to clipboard
open fun writeToFile(filePath: String, objectData: Array<Byte>)
Write byte [] To File.
Link copied to clipboard
open fun writeToFileAndCleanOldVersionFiles(filePath: String, objectData: Array<Byte>, fileHeader: String)
It will clean all previous version of data files and then write objectData to the filePath.