919293949596979899100101
int inputBlocks = inLen / 4; int remainder = inLen % 4; int outputLen = inputBlocks * 3; switch (remainder) { case 1: throw new Base64DecodingException( Messages.getString("Base64Coder.IllegalLength", inLen)); case 2: outputLen += 1; break; case 3:
178179180181182183184185186187
return new String(out); } private static byte getByte(int i) throws Base64DecodingException { if (i < 0 || i > 127 || DECODE[i] == -1) { throw new Base64DecodingException( Messages.getString("Base64Coder.IllegalCharacter", i)); } return DECODE[i]; }