Interface BaseFileIOProcessor
-
- All Implemented Interfaces:
public interface BaseFileIOProcessor
Represents base file IO operations
-
-
Method Summary
Modifier and Type Method Description abstract Unit
write(ByteArray byteArray, File destination)
Write ByteArray data to the destination File abstract ByteArray
read(File source)
Read ByteArray data from the source File abstract Unit
copyRaw(File source, File destination)
Creates a raw copy of the source file to the destination file abstract OutputStream
openFileOutputStream(File destinationFile)
Returns OutputStream for the destination file abstract InputStream
openFileInputStream(File sourceFile)
Returns OutputStream for the source file abstract Boolean
getUseEncryption()
-
-
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
-
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()
-
-
-
-