Here you can find the source of print(ByteBuffer bb)
public static void print(ByteBuffer bb)
//package com.java2s; //License from project: LGPL import java.nio.ByteBuffer; public class Main { public static void print(ByteBuffer bb) { System.out.println("position =" + bb.position() + ", rmaining=" + bb.remaining() + ", limit=" + bb.limit()); }//from w w w . j ava2 s.c om }