tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util/xml XmlMapper.java
Date Fri, 09 Feb 2001 07:51:34 GMT
costin      01/02/08 23:51:34

  Modified:    src/share/org/apache/tomcat/util Base64.java
               src/share/org/apache/tomcat/util/xml XmlMapper.java
  Log:
  Small fix in base64 ( the method is static )
  
  Increased the size of the default buffers in XmlMapper ( probably
  we need to make them resizable, this was just a hack until we get to
  reuse the ant mapper - which didn't happened and the hack grew a bit
  too big )
  
  Revision  Changes    Path
  1.4       +5 -5      jakarta-tomcat/src/share/org/apache/tomcat/util/Base64.java
  
  Index: Base64.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/Base64.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Base64.java	2000/12/27 21:00:31	1.3
  +++ Base64.java	2001/02/09 07:51:34	1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/Base64.java,v 1.3
2000/12/27 21:00:31 costin Exp $
  - * $Revision: 1.3 $
  - * $Date: 2000/12/27 21:00:31 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/Base64.java,v 1.4
2001/02/09 07:51:34 costin Exp $
  + * $Revision: 1.4 $
  + * $Date: 2001/02/09 07:51:34 $
    *
    * ====================================================================
    *
  @@ -74,7 +74,7 @@
    * This class is used by XML Schema binary format validation
    *
    * @author Jeffrey Rodriguez
  - * @version $Revision: 1.3 $ $Date: 2000/12/27 21:00:31 $
  + * @version $Revision: 1.4 $ $Date: 2001/02/09 07:51:34 $
    */
   
   public final class Base64 {
  @@ -147,7 +147,7 @@
        * @param binaryData Array containing binaryData
        * @return Encoded Base64 array
        */
  -    public byte[] encode( byte[] binaryData ) {
  +    public static byte[] encode( byte[] binaryData ) {
           int      lengthDataBits    = binaryData.length*EIGHTBIT;
           int      fewerThan24bits   = lengthDataBits%TWENTYFOURBITGROUP;
           int      numberTriplets    = lengthDataBits/TWENTYFOURBITGROUP;
  
  
  
  1.30      +4 -4      jakarta-tomcat/src/share/org/apache/tomcat/util/xml/XmlMapper.java
  
  Index: XmlMapper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/xml/XmlMapper.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- XmlMapper.java	2000/11/22 01:10:30	1.29
  +++ XmlMapper.java	2001/02/09 07:51:34	1.30
  @@ -48,8 +48,8 @@
       boolean validating=false;
   
       public XmlMapper() {
  -	attributeStack = new Object[100]; // depth of the xml doc
  -	tagStack = new String[100];
  +	attributeStack = new Object[200]; // depth of the xml doc
  +	tagStack = new String[200];
   	initDefaultRules();
       }
   
  @@ -341,8 +341,8 @@
   	    this.action=action;
   	}
       }
  -    Rule rules[]=new Rule[100];
  -    Rule matching[]=new Rule[100];
  +    Rule rules[]=new Rule[200];
  +    Rule matching[]=new Rule[200];
       int ruleCount=0;
   
       /**
  
  
  

Mime
View raw message