Here you can find the source of toInt(int byteSignificance, byte b)
public static int toInt(int byteSignificance, byte b)
//package com.java2s; /*/*from w w w . j av a 2 s . c o m*/ * Copyright (C) 2009 by Eric Herman <eric@freesa.org> * Use and distribution licensed under the * GNU Lesser General Public License (LGPL) version 2.1. * See the COPYING file in the parent directory for full text. */ public class Main { public static int toInt(int byteSignificance, byte b) { return ((b & 0xFF) << (8 * byteSignificance)); } }