Class FileCopyingMultipartFileReader

java.lang.Object
org.springframework.integration.http.multipart.FileCopyingMultipartFileReader
All Implemented Interfaces:
MultipartFileReader<MultipartFile>

public class FileCopyingMultipartFileReader extends Object implements MultipartFileReader<MultipartFile>
MultipartFileReader implementation that copies the MultipartFile's content to a new temporary File in the specified directory. If no directory is provided, the Files will be created in the default temporary directory.
Since:
2.0
Author:
Mark Fisher, Artyem Bilan
  • Constructor Details

    • FileCopyingMultipartFileReader

      public FileCopyingMultipartFileReader()
      Create a FileCopyingMultipartFileReader that creates temporary Files in the default temporary directory.
    • FileCopyingMultipartFileReader

      public FileCopyingMultipartFileReader(File directory)
      Create a FileCopyingMultipartFileReader that creates temporary Files in the given directory.
      Parameters:
      directory - The directory.
  • Method Details