You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2004/07/14 09:59:51 UTC
cvs commit: jakarta-commons/io/src/java/org/apache/commons/io/output DeferredFileOutputStream.java
scolebourne 2004/07/14 00:59:51
Modified: io/src/java/org/apache/commons/io/output
DeferredFileOutputStream.java
Log:
Improve the javadoc to define a use case
Revision Changes Path
1.3 +6 -1 jakarta-commons/io/src/java/org/apache/commons/io/output/DeferredFileOutputStream.java
Index: DeferredFileOutputStream.java
===================================================================
RCS file: /home/cvs/jakarta-commons/io/src/java/org/apache/commons/io/output/DeferredFileOutputStream.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DeferredFileOutputStream.java 23 Feb 2004 04:40:29 -0000 1.2
+++ DeferredFileOutputStream.java 14 Jul 2004 07:59:51 -0000 1.3
@@ -28,6 +28,11 @@
* threshold is reached, and only then commit it to disk. If the stream is
* closed before the threshold is reached, the data will not be written to
* disk at all.</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>
*
* @author <a href="mailto:martinc@apache.org">Martin Cooper</a>
*
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org