Here you can find the source of base64Character(int number)
public static char base64Character(int number)
//package com.java2s; /******************************************************************************* * Copyright (c) 2000, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors:/*from w ww . ja va2 s . com*/ * IBM Corporation - initial API and implementation *******************************************************************************/ public class Main { private static final String BASE_64_ENCODING = "-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz"; public static char base64Character(int number) { if (number < 0 || number > 63) { return ' '; } return BASE_64_ENCODING.charAt(number); } }