Class AesFileCommander


  • public class AesFileCommander
    extends FileCommander
    Facade class for encrypted file operations in batch.
    • 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:
        importFiles in class FileCommander
        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:
        importFiles in class FileCommander
        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:
        exportFiles in class FileCommander
        Parameters:
        filesToExport - The files to export.
        exportDir - The export target directory
        options - The options
        Returns:
        The exported files
        Throws:
        java.lang.Exception - Thrown if error occurs during export