Here you can find the source of unsignedByteToString(int i)
private static String unsignedByteToString(int i)
//package com.java2s; /******************************************************************************* * Copyright (c) 2014 hangum./*from w w w.j av a 2 s. c o m*/ * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * * Contributors: * hangum - initial API and implementation ******************************************************************************/ public class Main { private static String unsignedByteToString(int i) { return "" + Character.forDigit(i / 16, 16) //$NON-NLS-1$ + Character.forDigit(i % 16, 16); } }