This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
commit 5a7cb327253a5642007b88c21eaf481a7c272857 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Mar 23 16:21:56 2024 -0400 Javadoc --- .../org/apache/commons/io/output/DeferredFileOutputStream.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/apache/commons/io/output/DeferredFileOutputStream.java b/src/main/java/org/apache/commons/io/output/DeferredFileOutputStream.java index 38bd1fb48..ed518bae1 100644 --- a/src/main/java/org/apache/commons/io/output/DeferredFileOutputStream.java +++ b/src/main/java/org/apache/commons/io/output/DeferredFileOutputStream.java @@ -35,6 +35,14 @@ import org.apache.commons.io.file.PathUtils; * To build an instance, use {@link Builder}. * </p> * <p> + * The caller is responsible for deleting the output file ({@link #getFile()}, {@link #getPath()}) created by a DeferredFileOutputStream when the caller only + * configured a prefix. + * </p> + * <p> + * The caller is responsible for deleting the output file passed to a constructor or builder through {@link Builder#setOutputFile(File)} or + * {@link Builder#setOutputFile(Path)}. + * </p> + * <p> * This class originated in FileUpload processing. In this use case, you do not know in advance the size of the file being uploaded. If the file is small you * want to store it in memory (for speed), but if the file is large you want to store it to file (to avoid memory issues). * </p>