Here you can find the source of readIntMSB(ByteBuffer logBuf)
public static int readIntMSB(ByteBuffer logBuf)
//package com.java2s; /*-//from www . j a v a2 s . com * See the file LICENSE for redistribution information. * * Copyright (c) 2002-2010 Oracle. All rights reserved. * */ import java.nio.ByteBuffer; public class Main { /** * Read a int from the log in MSB order. Used for ordered keys. */ public static int readIntMSB(ByteBuffer logBuf) { int ret = (logBuf.get() & 0xFF) << 24; ret += (logBuf.get() & 0xFF) << 16; ret += (logBuf.get() & 0xFF) << 8; ret += (logBuf.get() & 0xFF) << 0; return ret; } }