Skip to content

Commit 3f4e926

Browse files
committed
Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/codec/trunk@130428 13f79535-47bb-0310-9956-ffa450edef68
1 parent fe62254 commit 3f4e926

1 file changed

Lines changed: 25 additions & 3 deletions

File tree

src/java/org/apache/commons/codec/binary/Base64.java

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* @see <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a>
3232
* @author Apache Software Foundation
3333
* @since 1.0-dev
34-
* @version $Id: Base64.java,v 1.21 2004/10/20 01:37:54 ggregory Exp $
34+
* @version $Id: Base64.java,v 1.22 2004/10/30 00:18:57 ggregory Exp $
3535
*/
3636
public class Base64 implements BinaryEncoder, BinaryDecoder {
3737

@@ -92,9 +92,31 @@ public class Base64 implements BinaryEncoder, BinaryDecoder {
9292
*/
9393
static final byte PAD = (byte) '=';
9494

95-
// Create arrays to hold the base64 characters and a
96-
// lookup for base64 chars
95+
/**
96+
* Contains the Base64 values <code>0</code> through <code>63</code> accessed by using character encodings as
97+
* indices.
98+
* <p>
99+
* For example, <code>base64Alphabet['+']</code> returns <code>62</code>.
100+
* </p>
101+
* <p>
102+
* The value of undefined encodings is <code>-1</code>.
103+
* </p>
104+
*/
97105
private static byte[] base64Alphabet = new byte[BASELENGTH];
106+
107+
/**
108+
* <p>
109+
* Contains the Base64 encodings <code>A</code> through <code>Z</code>, followed by <code>a</code> through
110+
* <code>z</code>, followed by <code>0</code> through <code>9</code>, followed by <code>+</code>, and
111+
* <code>/</code>.
112+
* </p>
113+
* <p>
114+
* This array is accessed by using character values as indices.
115+
* </p>
116+
* <p>
117+
* For example, <code>lookUpBase64Alphabet[62] </code> returns <code>'+'</code>.
118+
* </p>
119+
*/
98120
private static byte[] lookUpBase64Alphabet = new byte[LOOKUPLENGTH];
99121

100122
// Populating the lookup and character arrays

0 commit comments

Comments
 (0)