Package com.mku.salmonfs.drive.utils
Class AesFileCommander
- java.lang.Object
-
- com.mku.fs.drive.utils.FileCommander
-
- com.mku.salmonfs.drive.utils.AesFileCommander
-
public class AesFileCommander extends FileCommander
Facade class for encrypted file operations in batch.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mku.fs.drive.utils.FileCommander
FileCommander.BatchCopyOptions, FileCommander.BatchDeleteOptions, FileCommander.BatchExportOptions, FileCommander.BatchImportOptions, FileCommander.RealFileTaskProgress, FileCommander.VirtualFileTaskProgress
-
-
Constructor Summary
Constructors Constructor Description AesFileCommander(int importBufferSize, int exportBufferSize, int threads)Instantiate a new file commander object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFile[]exportFiles(IVirtualFile[] filesToExport, IFile exportDir, FileCommander.BatchExportOptions options)Export AesFile(s) from the drive.AesFile[]importFiles(IFile[] filesToImport, IVirtualFile importDir)Import IFile(s) into the drive.AesFile[]importFiles(IFile[] filesToImport, IVirtualFile importDir, FileCommander.BatchImportOptions options)Import IFile(s) into the drive.-
Methods inherited from class com.mku.fs.drive.utils.FileCommander
areJobsStopped, cancel, close, copyFiles, deleteFiles, deleteFiles, exportFiles, getFileExporter, getFileImporter, getFileSearcher, isFileSearcherRunning, isFileSearcherStopped, isRunning, renameFile, search, search, stopFileSearch
-
-
-
-
Constructor Detail
-
AesFileCommander
public AesFileCommander(int importBufferSize, int exportBufferSize, int threads)Instantiate a new file commander object.- Parameters:
importBufferSize- The buffer size to use for importing files.exportBufferSize- The buffer size to use for exporting files.threads- The threads to use for import and export
-
-
Method Detail
-
importFiles
public AesFile[] importFiles(IFile[] filesToImport, IVirtualFile importDir) throws java.lang.Exception
Import IFile(s) into the drive.- Overrides:
importFilesin classFileCommander- Parameters:
filesToImport- The files to import.importDir- The target directory.- Returns:
- The imported files.
- Throws:
java.lang.Exception- Thrown if error occurs during import
-
importFiles
public AesFile[] importFiles(IFile[] filesToImport, IVirtualFile importDir, FileCommander.BatchImportOptions options) throws java.lang.Exception
Import IFile(s) into the drive.- Overrides:
importFilesin classFileCommander- Parameters:
filesToImport- The files to import.importDir- The target directory.options- The options- Returns:
- The imported files.
- Throws:
java.lang.Exception- Thrown if error occurs during import
-
exportFiles
public IFile[] exportFiles(IVirtualFile[] filesToExport, IFile exportDir, FileCommander.BatchExportOptions options) throws java.lang.Exception
Export AesFile(s) from the drive.- Overrides:
exportFilesin classFileCommander- Parameters:
filesToExport- The files to export.exportDir- The export target directoryoptions- The options- Returns:
- The exported files
- Throws:
java.lang.Exception- Thrown if error occurs during export
-
-