ggregory    2004/10/29 17:18:57

  Modified:    codec/src/java/org/apache/commons/codec/binary Base64.java
  Log:
  Javadoc.
  
  Revision  Changes    Path
  1.22      +25 -3     
jakarta-commons/codec/src/java/org/apache/commons/codec/binary/Base64.java
  
  Index: Base64.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/codec/src/java/org/apache/commons/codec/binary/Base64.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- Base64.java       20 Oct 2004 01:37:54 -0000      1.21
  +++ Base64.java       30 Oct 2004 00:18:57 -0000      1.22
  @@ -92,9 +92,31 @@
        */
       static final byte PAD = (byte) '=';
   
  -    // Create arrays to hold the base64 characters and a 
  -    // lookup for base64 chars
  +    /**
  +     * Contains the Base64 values <code>0</code> through <code>63</code> accessed 
by using character encodings as
  +     * indices.
  +     * <p>
  +     * For example, <code>base64Alphabet['+']</code> returns <code>62</code>.
  +     * </p>
  +     * <p>
  +     * The value of undefined encodings is <code>-1</code>.
  +     * </p>
  +     */
       private static byte[] base64Alphabet = new byte[BASELENGTH];
  +    
  +    /**
  +     * <p>
  +     * Contains the Base64 encodings <code>A</code> through <code>Z</code>, 
followed by <code>a</code> through
  +     * <code>z</code>, followed by <code>0</code> through <code>9</code>, followed 
by <code>+</code>, and
  +     * <code>/</code>.
  +     * </p>
  +     * <p>
  +     * This array is accessed by using character values as indices.
  +     * </p>
  +     * <p>
  +     * For example, <code>lookUpBase64Alphabet[62] </code> returns <code>'+'</code>.
  +     * </p>
  +     */
       private static byte[] lookUpBase64Alphabet = new byte[LOOKUPLENGTH];
   
       // Populating the lookup and character arrays
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to