-
- All Implemented Interfaces:
-
io.scanbot.sdk.persistence.fileio.BaseFileIOProcessor,io.scanbot.sdk.persistence.fileio.FileIOProcessor,io.scanbot.sdk.persistence.fileio.ImageFileIOProcessor
public final class EncryptedFileIOProcessor implements FileIOProcessorRepresents encryption/decryption file IO operations.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanuseEncryptionprivate final Contextcontext
-
Constructor Summary
Constructors Constructor Description EncryptedFileIOProcessor(Context context)
-
Method Summary
Modifier and Type Method Description BooleangetUseEncryption()final ContextgetContext()UnitwriteImage(Bitmap bitmap, Bitmap.CompressFormat compressFormat, Integer quality, File destination)BitmapreadImage(File source, BitmapFactory.Options options)BitmapreadImage(Uri sourceUri, BitmapFactory.Options options)ByteArrayread(File source)Unitwrite(ByteArray byteArray, File destination)UnitcopyRaw(File encryptedSource, File destination)Decrypts encryptedSource file and creates unencrypted copy in the destination file. OutputStreamopenFileOutputStream(File destinationFile)InputStreamopenFileInputStream(File sourceFile)-
-
Constructor Detail
-
EncryptedFileIOProcessor
EncryptedFileIOProcessor(Context context)
-
-
Method Detail
-
getUseEncryption
Boolean getUseEncryption()
-
getContext
final Context getContext()
-
writeImage
Unit writeImage(Bitmap bitmap, Bitmap.CompressFormat compressFormat, Integer quality, File destination)
-
readImage
Bitmap readImage(File source, BitmapFactory.Options options)
-
readImage
Bitmap readImage(Uri sourceUri, BitmapFactory.Options options)
-
copyRaw
Unit copyRaw(File encryptedSource, File destination)
Decrypts encryptedSource file and creates unencrypted copy in the destination file.
-
openFileOutputStream
OutputStream openFileOutputStream(File destinationFile)
-
openFileInputStream
InputStream openFileInputStream(File sourceFile)
-
-
-
-