@@ -79,7 +79,7 @@ public class Base64 extends BaseNCodec {
7979 * Thanks to "commons" project in ws.apache.org for this code.
8080 * http://svn.apache.org/repos/asf/webservices/commons/trunk/modules/util/
8181 */
82- private static final byte [] STANDARD_ENCODE_TABLE = {
82+ public static final byte [] STANDARD_ENCODE_TABLE = {
8383 'A' , 'B' , 'C' , 'D' , 'E' , 'F' , 'G' , 'H' , 'I' , 'J' , 'K' , 'L' , 'M' ,
8484 'N' , 'O' , 'P' , 'Q' , 'R' , 'S' , 'T' , 'U' , 'V' , 'W' , 'X' , 'Y' , 'Z' ,
8585 'a' , 'b' , 'c' , 'd' , 'e' , 'f' , 'g' , 'h' , 'i' , 'j' , 'k' , 'l' , 'm' ,
@@ -92,7 +92,7 @@ public class Base64 extends BaseNCodec {
9292 * changed to - and _ to make the encoded Base64 results more URL-SAFE.
9393 * This table is only used when the Base64's mode is set to URL-SAFE.
9494 */
95- private static final byte [] URL_SAFE_ENCODE_TABLE = {
95+ public static final byte [] URL_SAFE_ENCODE_TABLE = {
9696 'A' , 'B' , 'C' , 'D' , 'E' , 'F' , 'G' , 'H' , 'I' , 'J' , 'K' , 'L' , 'M' ,
9797 'N' , 'O' , 'P' , 'Q' , 'R' , 'S' , 'T' , 'U' , 'V' , 'W' , 'X' , 'Y' , 'Z' ,
9898 'a' , 'b' , 'c' , 'd' , 'e' , 'f' , 'g' , 'h' , 'i' , 'j' , 'k' , 'l' , 'm' ,
@@ -275,13 +275,13 @@ public Base64(final int lineLength, final byte[] lineSeparator, final boolean ur
275275 }
276276
277277 /**
278- * Creates a Base64 codec used for decoding and encoding with non-standard encodingTable -table
278+ * Creates a Base64 codec used for decoding and encoding with non-standard encodeTable -table
279279 *
280- * @param encodingTable
280+ * @param encodeTable
281281 * The manual encodeTable - a byte array of 64 chars
282282 */
283- public Base64 (byte [] encodingTable ) {
284- this (0 , CHUNK_SEPARATOR , encodingTable );
283+ public Base64 (byte [] encodeTable ) {
284+ this (0 , CHUNK_SEPARATOR , encodeTable );
285285 }
286286
287287 /**
@@ -293,10 +293,10 @@ public Base64(byte[] encodingTable) {
293293 * decoding.
294294 * @param lineSeparator
295295 * Each line of encoded data will end with this sequence of bytes.
296- * @param encodingTable
296+ * @param encodeTable
297297 * The manual encodeTable - a byte array of 64 chars
298298 */
299- public Base64 (final int lineLength , final byte [] lineSeparator , byte [] encodingTable ) {
299+ public Base64 (final int lineLength , final byte [] lineSeparator , byte [] encodeTable ) {
300300 super (BYTES_PER_UNENCODED_BLOCK , BYTES_PER_ENCODED_BLOCK ,
301301 lineLength ,
302302 lineSeparator == null ? 0 : lineSeparator .length );
@@ -320,7 +320,7 @@ public Base64(final int lineLength, final byte[] lineSeparator, byte[] encodingT
320320 this .lineSeparator = null ;
321321 }
322322 this .decodeSize = this .encodeSize - 1 ;
323- this .encodeTable = encodingTable ;
323+ this .encodeTable = encodeTable ;
324324 }
325325
326326 /**
@@ -339,7 +339,7 @@ public boolean isUrlSafe() {
339339 * the data to encode, and once with inAvail set to "-1" to alert encoder that EOF has been reached, to flush last
340340 * remaining bytes (if not multiple of 3).
341341 * </p>
342- * <p><b>Note: no padding is added when encoding using the URL-safe alphabet.</b></p>
342+ * <p><b>Note: no padding is added when encoding not using the default alphabet.</b></p>
343343 * <p>
344344 * Thanks to "commons" project in ws.apache.org for the bitwise operations, and general approach.
345345 * http://svn.apache.org/repos/asf/webservices/commons/trunk/modules/util/
0 commit comments