Here you can find the source of getBoolean(ByteBuffer b)
public static boolean getBoolean(ByteBuffer b)
//package com.java2s; //License from project: Apache License import java.nio.ByteBuffer; public class Main { public static boolean getBoolean(ByteBuffer b) { return (b.getInt() == 1); }/* ww w .ja v a 2 s . c om*/ public static int[] getInt(ByteBuffer b, int n) { int i[] = new int[n]; for (int k = 0; k < i.length; k++) { i[k] = b.getInt(); } return i; } }