Here you can find the source of getLTriad(ByteBuffer bb)
public static int getLTriad(ByteBuffer bb)
//package com.java2s; //License from project: Open Source License import java.nio.ByteBuffer; public class Main { public static int getLTriad(ByteBuffer bb) { return (int) (bb.get() << 16 | bb.get() << 8 | bb.get()); }/*from ww w . j a v a2s .com*/ public static int getLTriad(byte[] data, int offset) { return (data[offset] & 0xff) | (data[offset + 1] & 0xff) << 8 | (data[offset + 2] & 0xff) << 16; } }