tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@hyperreal.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/jasper/runtime BodyContentImpl.java
Date Thu, 28 Oct 1999 02:10:07 GMT
mode        99/10/27 19:10:06

  Modified:    src/share/org/apache/jasper/runtime Tag:
                        TOMCAT_J2EE_10F_102199 BodyContentImpl.java
  Log:
  Fixed write bug and changed getReader
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.3   +5 -8      jakarta-tomcat/src/share/org/apache/jasper/runtime/BodyContentImpl.java
  
  Index: BodyContentImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/runtime/BodyContentImpl.java,v
  retrieving revision 1.2.2.2
  retrieving revision 1.2.2.3
  diff -u -r1.2.2.2 -r1.2.2.3
  --- BodyContentImpl.java	1999/10/27 09:45:46	1.2.2.2
  +++ BodyContentImpl.java	1999/10/28 02:10:02	1.2.2.3
  @@ -1,7 +1,7 @@
   /*
  - * $Id: BodyContentImpl.java,v 1.2.2.2 1999/10/27 09:45:46 akv Exp $
  - * $Revision: 1.2.2.2 $
  - * $Date: 1999/10/27 09:45:46 $
  + * $Id: BodyContentImpl.java,v 1.2.2.3 1999/10/28 02:10:02 mode Exp $
  + * $Revision: 1.2.2.3 $
  + * $Date: 1999/10/28 02:10:02 $
    *
    * ====================================================================
    * 
  @@ -160,6 +160,7 @@
   		   reAllocBuff (len);
   
               System.arraycopy(cbuf, off, cb, nextChar, len);
  +	    nextChar+=len;
           }
       }
   
  @@ -553,11 +554,7 @@
        * @returns the value of this BodyJspWriter as a Reader
        */
       public Reader getReader() {
  -	//XXX need to optimize this
  -	    char[] tmp = new char [ nextChar - 1];
  -	    for (int i=0; i < tmp.length; i++) 
  -	        tmp[i] = cb[i];	
  -	    return new CharArrayReader (tmp);
  +        return new CharArrayReader (cb, 0, nextChar-1);
       }
   
       /**
  
  
  

Mime
View raw message