Here you can find the source of getByteLen(ByteBuffer buffer)
public static int getByteLen(ByteBuffer buffer)
//package com.java2s; //License from project: Apache License import java.nio.ByteBuffer; public class Main { public static int getByteLen(ByteBuffer buffer) { return 0xff & buffer.get(); }//w ww . ja v a 2s . c o m }