Skip to content

Commit 7fde924

Browse files
committed
Comments
Javadoc
1 parent 5c456c3 commit 7fde924

File tree

1 file changed

+9
-8
lines changed
  • src/main/java/org/apache/commons/codec/binary

1 file changed

+9
-8
lines changed

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,34 +112,35 @@ public Builder setUrlSafe(final boolean urlSafe) {
112112
private static final int DECODING_TABLE_LENGTH = 256;
113113

114114
/**
115-
* This array is a lookup table that translates 6-bit positive integer index values into their "Base64 Alphabet"
116-
* equivalents as specified in Table 1 of RFC 2045.
115+
* This array is a lookup table that translates 6-bit positive integer index values into their "Base64 Alphabet" equivalents as specified in Table 1 of RFC
116+
* 2045.
117117
* <p>
118-
* Thanks to "commons" project in ws.apache.org for this code.
119-
* https://svn.apache.org/repos/asf/webservices/commons/trunk/modules/util/
118+
* Thanks to "commons" project in ws.apache.org for this code. https://svn.apache.org/repos/asf/webservices/commons/trunk/modules/util/
120119
* </p>
121120
*/
121+
// @formatter:off
122122
private static final byte[] STANDARD_ENCODE_TABLE = {
123123
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
124124
'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
125125
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
126126
'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
127127
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/'
128128
};
129+
// @formatter:on
129130

130131
/**
131-
* This is a copy of the STANDARD_ENCODE_TABLE above, but with + and /
132-
* changed to - and _ to make the encoded Base64 results more URL-SAFE.
133-
* This table is only used when the Base64's mode is set to URL-SAFE.
132+
* This is a copy of the STANDARD_ENCODE_TABLE above, but with + and / changed to - and _ to make the encoded Base64 results more URL-SAFE. This table is
133+
* only used when the Base64's mode is set to URL-SAFE.
134134
*/
135+
// @formatter:off
135136
private static final byte[] URL_SAFE_ENCODE_TABLE = {
136137
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
137138
'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
138139
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
139140
'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
140141
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '_'
141142
};
142-
143+
// @formatter:on
143144
/**
144145
* This array is a lookup table that translates Unicode characters drawn from the "Base64 Alphabet" (as specified
145146
* in Table 1 of RFC 2045) into their 6-bit positive integer equivalents. Characters that are not in the Base64

0 commit comments

Comments
 (0)