Interface FileFactory

All Superinterfaces:
Serializable
All Known Implementing Classes:
TemporaryFileFactory
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface FileFactory extends Serializable
File factory interface for generating file to store the uploaded data into.
Since:
24.8
  • Method Summary

    Modifier and Type
    Method
    Description
    createFile(UploadMetadata uploadMetadata)
    Create a new file for given file name.
  • Method Details

    • createFile

      File createFile(UploadMetadata uploadMetadata) throws IOException
      Create a new file for given file name.
      Parameters:
      uploadMetadata - metadata for upload that should get a file created
      Returns:
      File that should be used
      Throws:
      IOException