Package com.mku.salmonfs.drive.utils
Class AesFileExporter
- java.lang.Object
-
- com.mku.fs.drive.utils.FileExporter
-
- com.mku.salmonfs.drive.utils.AesFileExporter
-
public class AesFileExporter extends FileExporter
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
Constructors Constructor Description AesFileExporter()
Instantiates 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected long
getMinimumPartSize(IVirtualFile file)
Get the minimum part of file that can be exported in parallel.protected void
onPrepare(IVirtualFile sourceFile, boolean integrity)
Runs before export-
Methods inherited from class com.mku.fs.drive.utils.FileExporter
close, exportFile, exportFile, initialize, isRunning, stop
-
-
-
-
Constructor Detail
-
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 Detail
-
onPrepare
protected void onPrepare(IVirtualFile sourceFile, boolean integrity) throws java.io.IOException
Runs before export- Specified by:
onPrepare
in classFileExporter
- Parameters:
sourceFile
- The file that will be importedintegrity
- If integrity verification is enabled- Throws:
java.io.IOException
- If there is a problem with the file preparation.
-
getMinimumPartSize
protected long getMinimumPartSize(IVirtualFile file) throws java.io.IOException
Get the minimum part of file that can be exported in parallel.- Specified by:
getMinimumPartSize
in classFileExporter
- Parameters:
file
- The file- Returns:
- The number of bytes
- Throws:
java.io.IOException
- If there was a problem calculating the size.
-
-