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.
  • 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

      protected void onPrepare(IVirtualFile sourceFile, boolean integrity) throws IOException
      Runs before export
      Specified by:
      onPrepare in class FileExporter
      Parameters:
      sourceFile - The file that will be imported
      integrity - If integrity verification is enabled
      Throws:
      IOException - If there is a problem with the file preparation.
    • getMinimumPartSize

      protected long getMinimumPartSize(IVirtualFile file) throws IOException
      Get the minimum part of file that can be exported in parallel.
      Specified by:
      getMinimumPartSize in class FileExporter
      Parameters:
      file - The file
      Returns:
      The number of bytes
      Throws:
      IOException - If there was a problem calculating the size.