Interface BaseFileIOProcessor
-
- All Implemented Interfaces:
-
io.scanbot.sdk.persistence.fileio.CoreStreamProvider
public interface BaseFileIOProcessor implements CoreStreamProvider
Represents base file IO operations
-
-
Method Summary
Modifier and Type Method Description abstract Unitwrite(ByteArray byteArray, File destination)Write ByteArray data to the destination File abstract ByteArrayread(File source)Read ByteArray data from the source File abstract UnitcopyRaw(File source, File destination)Creates a raw copy of the source file to the destination file without encryption if its enabled abstract Unitcopy(File source, File destination)Creates a copy of the source file to the destination file with encryption if its enabled abstract Unitmove(File source, File destination)Creates a copy of the source file to the destination file and deletes the source file. abstract OutputStreamopenFileOutputStream(File destinationFile)Returns OutputStream for the destination file abstract InputStreamopenFileInputStream(File sourceFile)Returns OutputStream for the source file abstract BooleangetUseEncryption()-
-
Method Detail
-
write
abstract Unit write(ByteArray byteArray, File destination)
- Parameters:
byteArray- data to writedestination- the destination file
-
read
abstract ByteArray read(File source)
- Parameters:
source- the source file object, or null if it could not be decoded.
-
copyRaw
abstract Unit copyRaw(File source, File destination)
Creates a raw copy of the source file to the destination file without encryption if its enabled
-
copy
abstract Unit copy(File source, File destination)
Creates a copy of the source file to the destination file with encryption if its enabled
-
move
abstract Unit move(File source, File destination)
Creates a copy of the source file to the destination file and deletes the source file. Encryption is applied if enabled.
-
openFileOutputStream
abstract OutputStream openFileOutputStream(File destinationFile)
Returns OutputStream for the destination file
-
openFileInputStream
abstract InputStream openFileInputStream(File sourceFile)
Returns OutputStream for the source file
-
getUseEncryption
abstract Boolean getUseEncryption()
-
-
-
-