webwork/src/main/webwork/multipart/parser MultipartRequest.java,1.1,1.2

[email protected] Mon, 29 Dec 2003 08:10:22 -0800
Newsgroups gmane.comp.java.open-symphony.cvs
Message-ID <[email protected]>
Update of /cvsroot/opensymphony/webwork/src/main/webwork/multipart/parser
In directory sc8-pr-cvs1:/tmp/cvs-serv18542/src/main/webwork/multipart/parser

Modified Files:
	MultipartRequest.java 
Log Message:
Use FastByteArrayOutputStream


Index: MultipartRequest.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/multipart/parser/MultipartRequest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- MultipartRequest.java	27 Dec 2003 23:04:24 -0000	1.1
+++ MultipartRequest.java	29 Dec 2003 16:10:20 -0000	1.2
@@ -7,6 +7,7 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import webwork.util.FastByteArrayOutputStream;
 
 /**
  * A Multipart form data parser.  Parses an input stream and writes out any files found,
@@ -885,14 +886,14 @@
    */
   private byte[] readFile(InputStream in) throws IOException
   {
-    ByteArrayOutputStream out = null;
+    FastByteArrayOutputStream out = null;
 
     // 1.30rc1 - if max content is larger or equal to actual content length, then we
     // can continue, otherwise, all file content should be silently ignored.
     if(this.intContentLength <= this.intMaxContentLength)
     {
       // In this case, we do not need to worry about a outputdirectory.
-      out = new ByteArrayOutputStream();
+      out = new FastByteArrayOutputStream();
     }
 
     long count = readAndWrite(in, out);




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click