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
IOException
public void close() throws IOException
close
in interface AutoCloseable
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.