Here you can find the source of base64toInt(char c, byte[] alphaToInt)
private static int base64toInt(char c, byte[] alphaToInt)
//package com.java2s; //License from project: Open Source License public class Main { /**// ww w . j av a 2 s . c om * Translates the specified character, which is assumed to be in the "Base 64 Alphabet" into its equivalent 6-bit * positive integer. * * @throw IllegalArgumentException or ArrayOutOfBoundsException if c is not in the Base64 Alphabet. */ private static int base64toInt(char c, byte[] alphaToInt) { int result = alphaToInt[c]; if (result < 0) { throw new IllegalArgumentException("Illegal character " + c); } return result; } }