@@ -84,8 +84,8 @@ public static String encodeLines (byte[] in, int iOff, int iLen, int lineLen, St
84
84
int ip = 0 ;
85
85
while (ip < iLen ) {
86
86
int l = Math .min (iLen -ip , blockLen );
87
- buf .append (encode (in , iOff +ip , l ));
88
- buf .append (lineSeparator );
87
+ buf .append (encode (in , iOff +ip , l ));
88
+ buf .append (lineSeparator );
89
89
ip += l ; }
90
90
return buf .toString (); }
91
91
@@ -194,7 +194,7 @@ public static byte[] decode (char[] in) {
194
194
* @throws IllegalArgumentException If the input is not valid Base64 encoded data.
195
195
*/
196
196
public static byte [] decode (char [] in , int iOff , int iLen ) {
197
- if (iLen %4 != 0 ) throw new IllegalArgumentException ("Length of Base64 encoded input string is not a multiple of 4." );
197
+ if (iLen %4 != 0 ) throw new IllegalArgumentException ("Length of Base64 encoded input string is not a multiple of 4." );
198
198
while (iLen > 0 && in [iOff +iLen -1 ] == '=' ) iLen --;
199
199
int oLen = (iLen *3 ) / 4 ;
200
200
byte [] out = new byte [oLen ];
@@ -207,13 +207,13 @@ public static byte[] decode (char[] in, int iOff, int iLen) {
207
207
int i2 = ip < iEnd ? in [ip ++] : 'A' ;
208
208
int i3 = ip < iEnd ? in [ip ++] : 'A' ;
209
209
if (i0 > 127 || i1 > 127 || i2 > 127 || i3 > 127 )
210
- throw new IllegalArgumentException ("Illegal character in Base64 encoded data." );
210
+ throw new IllegalArgumentException ("Illegal character in Base64 encoded data." );
211
211
int b0 = map2 [i0 ];
212
212
int b1 = map2 [i1 ];
213
213
int b2 = map2 [i2 ];
214
214
int b3 = map2 [i3 ];
215
215
if (b0 < 0 || b1 < 0 || b2 < 0 || b3 < 0 )
216
- throw new IllegalArgumentException ("Illegal character in Base64 encoded data." );
216
+ throw new IllegalArgumentException ("Illegal character in Base64 encoded data." );
217
217
int o0 = ( b0 <<2 ) | (b1 >>>4 );
218
218
int o1 = ((b1 & 0xf )<<4 ) | (b2 >>>2 );
219
219
int o2 = ((b2 & 3 )<<6 ) | b3 ;
0 commit comments