public class DefaultFileIOProcessor implements FileIOProcessor
Represents default file IO operations with default system file IO tools
public DefaultFileIOProcessor(@NotNull
android.content.Context context)
Represents default file IO operations with default system file IO tools
public boolean getUseEncryption()
public void writeImage(@NotNull
android.graphics.Bitmap bitmap,
@NotNull
android.graphics.Bitmap.CompressFormat compressFormat,
int quality,
@NotNull
java.io.File destination)
bitmap - the source Bitmap imagecompressFormat - Bitmap.CompressFormat The format of the compressed imagequality - Int Hint to the compressor, 0-100. 0 meaning compress for small size, 100 meaning compress for max quality. Some formats, like PNG which is lossless, will ignore the quality settingdestination - the destination fileIOException - in case of IO operation problems@Nullable
public android.graphics.Bitmap readImage(@NotNull
java.io.File source,
@Nullable
android.graphics.BitmapFactory.Options options)
@Nullable
public android.graphics.Bitmap readImage(@NotNull
android.net.Uri sourceUri,
@Nullable
android.graphics.BitmapFactory.Options options)
@Nullable
public kotlin.Array[] read(@NotNull
java.io.File source)
public void write(@NotNull
kotlin.Array[] byteArray,
@NotNull
java.io.File destination)
public void copyRaw(@NotNull
java.io.File source,
@NotNull
java.io.File destination)
Creates a raw copy of the source file to the destination file
IOException - in case of IO operation problemssource,
destination@NotNull
public java.io.OutputStream openFileOutputStream(@NotNull
java.io.File destinationFile)
Returns OutputStream for the destination file
IOException - in case of IO operation problemsGeneralSecurityException - in case of any security-related problems@NotNull
public java.io.InputStream openFileInputStream(@NotNull
java.io.File sourceFile)
Returns OutputStream for the source file
IOException - in case of IO operation problemsGeneralSecurityException - in case of any security-related problems@NotNull public android.content.Context getContext()