commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mart...@apache.org
Subject cvs commit: jakarta-commons/io/src/java/org/apache/commons/io/output DeferredFileOutputStream.java
Date Mon, 11 Oct 2004 04:29:48 GMT
martinc     2004/10/10 21:29:48

  Modified:    io/src/java/org/apache/commons/io/output
                        DeferredFileOutputStream.java
  Log:
  Use the Commons IO ByteArrayOutputStream instead of the java.io one, so
  that we don't have to preallocate the entire memory size up front. This
  fixes bug #24306 filed against Commons FileUpload.
  
  Revision  Changes    Path
  1.4       +2 -3      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DeferredFileOutputStream.java	14 Jul 2004 07:59:51 -0000	1.3
  +++ DeferredFileOutputStream.java	11 Oct 2004 04:29:47 -0000	1.4
  @@ -17,7 +17,6 @@
   
   package org.apache.commons.io.output;
   
  -import java.io.ByteArrayOutputStream;
   import java.io.File;
   import java.io.FileOutputStream;
   import java.io.IOException;
  @@ -88,7 +87,7 @@
           super(threshold);
           this.outputFile = outputFile;
   
  -        memoryOutputStream = new ByteArrayOutputStream(threshold);
  +        memoryOutputStream = new ByteArrayOutputStream();
           currentOutputStream = memoryOutputStream;
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message