d class="lines-num lines-num-old">
int i;
for (i = 0; i < from.length; ++i) {
for (num %= 8; num < 8; num += 6) {
switch (num) {
case 0:
currentByte = (char) (from[i] & lead6byte);
currentByte = (char) (currentByte >>> 2);
case 1:
case 3:
case 5:
default:
break;
case 2:
currentByte = (char) (from[i] & last6byte);
break;
case 4:
currentByte = (char) (from[i] & last4byte);
currentByte = (char) (currentByte << 2);
if (i + 1 < from.length) {
currentByte = (char) (currentByte | (from[i + 1] & lead2byte) >>> 6);
}
break;
case 6:
currentByte = (char) (from[i] & last2byte);
currentByte = (char) (currentByte << 4);
if (i + 1 < from.length) {
currentByte = (char) (currentByte | (from[i + 1] & lead4byte) >>> 4);
}
}
to.append(encodeTable[currentByte]);
}
}
if (to.length() % 4 != 0) {
for (i = 4 - to.length() % 4; i > 0; --i) {
to.append("=");
}
}
return to.toString();
}
}
|
||
| 191 | 191 |
|
| 192 | 192 |
|
| 193 | 193 |
|
| 194 |
|
|
| 195 |
|
|
| 194 | 196 |
|
| 195 | 197 |
|
| 196 | 198 |
|
|
||
| 204 | 206 |
|
| 205 | 207 |
|
| 206 | 208 |
|
| 207 |
|
|
| 209 |
|
|
| 208 | 210 |
|
| 209 | 211 |
|
| 210 | 212 |
|
| 211 | 213 |
|
| 212 | 214 |
|
| 215 |
|
|
| 213 | 216 |
|
| 214 | 217 |
|
| 215 | 218 |
|
|
||
| 235 | 238 |
|
| 236 | 239 |
|
| 237 | 240 |
|
| 238 |
|
|
| 241 |
|
|
| 239 | 242 |
|
| 240 | 243 |
|
| 241 | 244 |
|
| 242 | 245 |
|
| 243 | 246 |
|
| 247 |
|
|
| 244 | 248 |
|
| 245 | 249 |
|
| 246 | 250 |
|
|
||
| 266 | 270 |
|
| 267 | 271 |
|
| 268 | 272 |
|
| 269 |
|
|
| 273 |
|
|
| 270 | 274 |
|
| 271 | 275 |
|
| 272 | 276 |
|
| 273 | 277 |
|
| 274 | 278 |
|
| 279 |
|
|
| 275 | 280 |
|
| 276 | 281 |
|
| 277 | 282 |
|
| 278 | 283 |
|
| 279 |
|
|
| 284 |
|
|
| 280 | 285 |
|
| 281 | 286 |
|
| 282 | 287 |
|