Here you can find the source of getInt(byte b)
public static int getInt(byte b)
//package com.java2s; public class Main { public static int getInt(byte[] bytes) { return (0xff & bytes[0]) | (0xff00 & (bytes[1] << 8)) | (0xff0000 & (bytes[2] << 16)) | (0xff000000 & (bytes[3] << 24)); }// w w w . j a v a 2 s .co m public static int getInt(byte b) { return (0xff & b); } }