CVS update: talon/src/java/talon/util

From: cvs@openprivacy.org
Date: Fri Feb 23 2001 - 02:09:17 PST

  • Next message: cvs@openprivacy.org: "CVS update: sierra/docs"

    Date: Friday February 23, 19101 @ 2:09
    Author: burton
    CVSWEB Options: -------------------

    Main CVSWeb: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi

    View this module: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/util

    -----------------------------------

    Update of /usr/local/cvs/public/talon/src/java/talon/util
    In directory giga:/tmp/cvs-serv387/src/java/talon/util

    Modified Files:
            Base64.java
    Log Message:
    ...

    *****************************************************************
    File: talon/src/java/talon/util/Base64.java

    CVSWEB Options: -------------------

    CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/util/Base64.java?annotate=1.2

    CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/util/Base64.java?rev=1.2&content-type=text/x-cvsweb-markup

    CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/util/Base64.java.diff?r1=1.2&r2=1.1

    -----------------------------------

    Index: talon/src/java/talon/util/Base64.java
    diff -u talon/src/java/talon/util/Base64.java:1.1 talon/src/java/talon/util/Base64.java:1.2
    --- talon/src/java/talon/util/Base64.java:1.1 Fri Feb 23 00:58:47 2001
    +++ talon/src/java/talon/util/Base64.java Fri Feb 23 02:09:17 2001
    @@ -17,10 +17,23 @@
     import talon.util.net.*;
     
     /**
    - * Package which supplies Base64 encoding and decoding ov data.
    + * Package which supplies Base64 encoding and decoding of data.
    + *
    + * This class provides encoding of byte arrays into Base64-encoded strings,
    + * and decoding the other way.
      *
    + * <P>NOTE! This is modified Base64 with slightly different characters than
    + * usual, so it won't require escaping when used in URLs.
    + *
    + * <P>NOTE! This class only does the padding that's normal in Base64
    + * if the 'true' flag is given to the encode() method. This is because
    + * Base64 requires that the length of the encoded text be a multiple
    + * of four characters, padded with '_'. Without the 'true' flag, we don't
    + * add these '_' characters.
    + *
    + * @author Stephen Blackheath
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: Base64.java,v 1.1 2001/02/23 08:58:47 burton Exp $
    + * @version $Id: Base64.java,v 1.2 2001/02/23 10:09:17 burton Exp $
      */
     public class Base64 {
     
    @@ -56,7 +69,7 @@
          *
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: Base64.java,v 1.1 2001/02/23 08:58:47 burton Exp $
    + * @version $Id: Base64.java,v 1.2 2001/02/23 10:09:17 burton Exp $
          */
         public static String encode(byte[] in) {
             return encode(in, false);
    @@ -66,7 +79,7 @@
          * Caller should specify equalsPad=true if they want a standards compliant encoding.
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: Base64.java,v 1.1 2001/02/23 08:58:47 burton Exp $
    + * @version $Id: Base64.java,v 1.2 2001/02/23 10:09:17 burton Exp $
          */
         public static String encode(byte[] in, boolean equalsPad) {
             
    @@ -101,7 +114,7 @@
          * shortened form.
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: Base64.java,v 1.1 2001/02/23 08:58:47 burton Exp $
    + * @version $Id: Base64.java,v 1.2 2001/02/23 10:09:17 burton Exp $
          */
         public static byte[] decode(String inStr)
             throws TalonException



    This archive was generated by hypermail 2b30 : Fri Feb 23 2001 - 02:10:49 PST