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.FileExporterFileExporter.FileExportOptions
 
- 
 - 
Constructor SummaryConstructors 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longgetMinimumPartSize(IVirtualFile file)Get the minimum part of file that can be exported in parallel.protected voidonPrepare(IVirtualFile sourceFile, boolean integrity)Runs before export- 
Methods inherited from class com.mku.fs.drive.utils.FileExporterclose, exportFile, exportFile, initialize, isRunning, stop
 
- 
 
- 
- 
- 
Constructor Detail- 
AesFileExporterpublic AesFileExporter() Instantiates a file exporter for encrypted files.
 - 
AesFileExporterpublic AesFileExporter(int bufferSize) Instantiates a file exporter for encrypted files.- Parameters:
- bufferSize- The buffer size to be used.
 
 - 
AesFileExporterpublic 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- 
onPrepareprotected void onPrepare(IVirtualFile sourceFile, boolean integrity) throws java.io.IOException Runs before export- Specified by:
- onPreparein class- FileExporter
- Parameters:
- sourceFile- The file that will be imported
- integrity- If integrity verification is enabled
- Throws:
- java.io.IOException- If there is a problem with the file preparation.
 
 - 
getMinimumPartSizeprotected long getMinimumPartSize(IVirtualFile file) throws java.io.IOException Get the minimum part of file that can be exported in parallel.- Specified by:
- getMinimumPartSizein class- FileExporter
- Parameters:
- file- The file
- Returns:
- The number of bytes
- Throws:
- java.io.IOException- If there was a problem calculating the size.
 
 
- 
 
-