Class AesFileExporter


  • public class AesFileExporter
    extends FileExporter
    Exports files from an encrypted virtual drive.
    • 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 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.
      • 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 class FileExporter
        Parameters:
        file - The file
        Returns:
        The number of bytes
        Throws:
        java.io.IOException - If there was a problem calculating the size.