You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This array is a lookup table that translates Unicode characters drawn from the "Base32 Alphabet" (as specified in Table 3 of RFC 4648) into their 5-bit
119
127
* positive integer equivalents. Characters that are not in the Base32 alphabet but fall within the bounds of the array are translated to -1.
@@ -134,8 +142,10 @@ public Builder setHexEncodeTable(final boolean useHex) {
134
142
// @formatter:on
135
143
136
144
/**
137
-
* This array is a lookup table that translates 5-bit positive integer index values into their "Base32 Alphabet" equivalents as specified in Table 3 of RFC
138
-
* 4648.
145
+
* This array is a lookup table that translates 5-bit positive integer index values into their "Base32 Alphabet" equivalents as specified in
146
+
* <a href="https://datatracker.ietf.org/doc/html/rfc4648#section-6">RFC 4648 Section 6, Table 3: The Base 32 Alphabet</a>.
147
+
*
148
+
* @see <a href="https://datatracker.ietf.org/doc/html/rfc4648#section-6">RFC 4648 Section 6, Table 3: The Base 32 Alphabet</a>
139
149
*/
140
150
// @formatter:off
141
151
privatestaticfinalbyte[] ENCODE_TABLE = {
@@ -148,6 +158,7 @@ public Builder setHexEncodeTable(final boolean useHex) {
148
158
/**
149
159
* This array is a lookup table that translates Unicode characters drawn from the "Base32 Hex Alphabet" (as specified in Table 4 of RFC 4648) into their
150
160
* 5-bit positive integer equivalents. Characters that are not in the Base32 Hex alphabet but fall within the bounds of the array are translated to -1.
161
+
*
151
162
*/
152
163
// @formatter:off
153
164
privatestaticfinalbyte[] HEX_DECODE_TABLE = {
@@ -165,8 +176,11 @@ public Builder setHexEncodeTable(final boolean useHex) {
165
176
// @formatter:on
166
177
167
178
/**
168
-
* This array is a lookup table that translates 5-bit positive integer index values into their "Base32 Hex Alphabet" equivalents as specified in Table 4 of
169
-
* RFC 4648.
179
+
* This array is a lookup table that translates 5-bit positive integer index values into their "Base 32 Encoding with Extended Hex Alphabet" equivalents as
180
+
* specified in <a href="https://datatracker.ietf.org/doc/html/rfc4648#section-7">RFC 4648 Section 7, Table 4: Base 32 Encoding with Extended Hex
181
+
* Alphabet</a>.
182
+
*
183
+
* @see <a href="https://datatracker.ietf.org/doc/html/rfc4648#section-7">RFC 4648 Section 7, Table 4: Base 32 Encoding with Extended Hex Alphabet</a>
@@ -324,7 +362,13 @@ public Base32(final int lineLength, final byte[] lineSeparator) {
324
362
* @param lineLength Each line of encoded data will be at most of the given length (rounded down to the nearest multiple of 8). If lineLength <= 0,
325
363
* then the output will not be divided into lines (chunks). Ignored when decoding.
326
364
* @param lineSeparator Each line of encoded data will end with this sequence of bytes.
327
-
* @param useHex if {@code true}, then use Base32 Hex alphabet, otherwise use Base32 alphabet
365
+
* @param useHex
366
+
* <ul>
367
+
* <li>If true, then use <a href="https://datatracker.ietf.org/doc/html/rfc4648#section-7">RFC 4648 Section 7, Table 4: Base 32 Encoding with
368
+
* Extended Hex Alphabet</a></li>
369
+
* <li>If false, then use <a href="https://datatracker.ietf.org/doc/html/rfc4648#section-6">RFC 4648 Section 6, Table 3: The Base 32
370
+
* Alphabet</a></li>
371
+
* </ul>
328
372
* @throws IllegalArgumentException Thrown when the {@code lineSeparator} contains Base32 characters. Or the lineLength > 0 and lineSeparator is null.
@@ -343,7 +387,13 @@ public Base32(final int lineLength, final byte[] lineSeparator, final boolean us
343
387
* @param lineLength Each line of encoded data will be at most of the given length (rounded down to the nearest multiple of 8). If lineLength <= 0,
344
388
* then the output will not be divided into lines (chunks). Ignored when decoding.
345
389
* @param lineSeparator Each line of encoded data will end with this sequence of bytes.
346
-
* @param useHex if {@code true}, then use Base32 Hex alphabet, otherwise use Base32 alphabet
390
+
* @param useHex
391
+
* <ul>
392
+
* <li>If true, then use <a href="https://datatracker.ietf.org/doc/html/rfc4648#section-7">RFC 4648 Section 7, Table 4: Base 32 Encoding with
393
+
* Extended Hex Alphabet</a></li>
394
+
* <li>If false, then use <a href="https://datatracker.ietf.org/doc/html/rfc4648#section-6">RFC 4648 Section 6, Table 3: The Base 32
395
+
* Alphabet</a></li>
396
+
* </ul>
347
397
* @param padding padding byte.
348
398
* @throws IllegalArgumentException Thrown when the {@code lineSeparator} contains Base32 characters. Or the lineLength > 0 and lineSeparator is null.
349
399
*/
@@ -363,7 +413,13 @@ public Base32(final int lineLength, final byte[] lineSeparator, final boolean us
363
413
* @param lineLength Each line of encoded data will be at most of the given length (rounded down to the nearest multiple of 8). If lineLength <= 0,
364
414
* then the output will not be divided into lines (chunks). Ignored when decoding.
365
415
* @param lineSeparator Each line of encoded data will end with this sequence of bytes.
366
-
* @param useHex use Base32 hexadecimal if {@code true}, otherwise use the Base32 alphabet.
416
+
* @param useHex
417
+
* <ul>
418
+
* <li>If true, then use <a href="https://datatracker.ietf.org/doc/html/rfc4648#section-7">RFC 4648 Section 7, Table 4: Base 32 Encoding with
419
+
* Extended Hex Alphabet</a></li>
420
+
* <li>If false, then use <a href="https://datatracker.ietf.org/doc/html/rfc4648#section-6">RFC 4648 Section 6, Table 3: The Base 32
421
+
* Alphabet</a></li>
422
+
* </ul>
367
423
* @param padding padding byte.
368
424
* @param decodingPolicy The decoding policy.
369
425
* @throws IllegalArgumentException Thrown when the {@code lineSeparator} contains Base32 characters. Or the lineLength > 0 and lineSeparator is null.
0 commit comments