[sword-cvs] sword/bindings/corba/java/src/org/crosswire/util Base64.java,1.1,1.2

sword@www.crosswire.org sword@www.crosswire.org
Sun, 11 May 2003 15:56:07 -0700


Update of /usr/local/cvsroot/sword/bindings/corba/java/src/org/crosswire/util
In directory www:/tmp/cvs-serv3813/bindings/corba/java/src/org/crosswire/util

Modified Files:
	Base64.java 
Log Message:



Index: Base64.java
===================================================================
RCS file: /usr/local/cvsroot/sword/bindings/corba/java/src/org/crosswire/util/Base64.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Base64.java	10 May 2003 02:52:27 -0000	1.1
--- Base64.java	11 May 2003 22:56:05 -0000	1.2
***************
*** 2,5 ****
--- 2,7 ----
  
  /**
+  * Changed last char from '/' to '-' because cookies can't use '/' so we're not really a BASE64
+  * standard encoder anymore
   * Changed package name.  --crosswire.
   * Thanks to Robert Harder for placing this code into the public domain
***************
*** 41,45 ****
      
      /** Maximum line length (76) of Base64 output. */
!     private final static int MAX_LINE_LENGTH = 76;
      
      
--- 43,47 ----
      
      /** Maximum line length (76) of Base64 output. */
!     private final static int MAX_LINE_LENGTH = java.lang.Integer.MAX_VALUE;
      
      
***************
*** 64,68 ****
          (byte)'v', (byte)'w', (byte)'x', (byte)'y', (byte)'z',
          (byte)'0', (byte)'1', (byte)'2', (byte)'3', (byte)'4', (byte)'5', 
!         (byte)'6', (byte)'7', (byte)'8', (byte)'9', (byte)'+', (byte)'/'
      };
      
--- 66,70 ----
          (byte)'v', (byte)'w', (byte)'x', (byte)'y', (byte)'z',
          (byte)'0', (byte)'1', (byte)'2', (byte)'3', (byte)'4', (byte)'5', 
!         (byte)'6', (byte)'7', (byte)'8', (byte)'9', (byte)'+', (byte)'-'  // changed last char from '/' to '-' because cookies can't use '/'
      };