Class FileUploads
- java.lang.Object
-
- org.apache.flink.runtime.rest.handler.FileUploads
-
- All Implemented Interfaces:
AutoCloseable
public final class FileUploads extends Object implements AutoCloseable
A container for uploaded files.Implementation note: The constructor also accepts directories to ensure that the upload directories are cleaned up. For convenience during testing it also accepts files directly.
-
-
Field Summary
Fields Modifier and Type Field Description static FileUploads
EMPTY
-
Constructor Summary
Constructors Constructor Description FileUploads(Path uploadDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Collection<File>
getUploadedFiles()
-
-
-
Field Detail
-
EMPTY
public static final FileUploads EMPTY
-
-
Constructor Detail
-
FileUploads
public FileUploads(@Nonnull Path uploadDirectory)
-
-
Method Detail
-
getUploadedFiles
public Collection<File> getUploadedFiles() throws IOException
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
-