public final class FileUploads extends Object implements AutoCloseable
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.
| Modifier and Type | Field and Description |
|---|---|
static FileUploads |
EMPTY |
| Constructor and Description |
|---|
FileUploads(Path uploadDirectory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Collection<File> |
getUploadedFiles() |
public static final FileUploads EMPTY
public Collection<File> getUploadedFiles() throws IOException
IOExceptionpublic void close()
throws IOException
close in interface AutoCloseableIOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.