Skip to content

Commit 07b4154

Browse files
author
Stephen Colebourne
committed
Improve the javadoc to define a use case
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/io/trunk@140587 13f79535-47bb-0310-9956-ffa450edef68
1 parent 006beda commit 07b4154

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/java/org/apache/commons/io/output/DeferredFileOutputStream.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,15 @@
2828
* threshold is reached, and only then commit it to disk. If the stream is
2929
* closed before the threshold is reached, the data will not be written to
3030
* disk at all.</p>
31+
*
32+
* <p>This class originated in FileUpload processing. In this use case, you do
33+
* not know in advance the size of the file being uploaded. If the file is small
34+
* you want to store it in memory (for speed), but if the file is large you want
35+
* to store it to file (to avoid memory issues).</p>
3136
*
3237
* @author <a href="mailto:martinc@apache.org">Martin Cooper</a>
3338
*
34-
* @version $Id: DeferredFileOutputStream.java,v 1.2 2004/02/23 04:40:29 bayard Exp $
39+
* @version $Id: DeferredFileOutputStream.java,v 1.3 2004/07/14 07:59:51 scolebourne Exp $
3540
*/
3641
public class DeferredFileOutputStream
3742
extends ThresholdingOutputStream

0 commit comments

Comments
 (0)