Package com.mku.salmonfs.drive.utils
Class AesFileExporter
java.lang.Object
com.mku.fs.drive.utils.FileExporter
com.mku.salmonfs.drive.utils.AesFileExporter
Exports files from an encrypted virtual drive.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.mku.fs.drive.utils.FileExporter
FileExporter.FileExportOptions -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a file exporter for encrypted files.AesFileExporter(int bufferSize) Instantiates a file exporter for encrypted files.AesFileExporter(int bufferSize, int threads) Instantiates a file exporter for encrypted files. -
Method Summary
Modifier and TypeMethodDescriptionprotected longGet the minimum part of file that can be exported in parallel.protected voidonPrepare(IVirtualFile sourceFile, boolean integrity) Runs before exportMethods inherited from class com.mku.fs.drive.utils.FileExporter
close, exportFile, exportFile, initialize, isRunning, stop
-
Constructor Details
-
AesFileExporter
public AesFileExporter()Instantiates a file exporter for encrypted files. -
AesFileExporter
public AesFileExporter(int bufferSize) Instantiates a file exporter for encrypted files.- Parameters:
bufferSize- The buffer size to be used.
-
AesFileExporter
public AesFileExporter(int bufferSize, int threads) Instantiates a file exporter for encrypted files.- Parameters:
bufferSize- The buffer size to be used.threads- The parallel threads to use
-
-
Method Details
-
onPrepare
Runs before export- Specified by:
onPreparein classFileExporter- Parameters:
sourceFile- The file that will be importedintegrity- If integrity verification is enabled- Throws:
IOException- If there is a problem with the file preparation.
-
getMinimumPartSize
Get the minimum part of file that can be exported in parallel.- Specified by:
getMinimumPartSizein classFileExporter- Parameters:
file- The file- Returns:
- The number of bytes
- Throws:
IOException- If there was a problem calculating the size.
-