Here you can find the source of readInt16(ByteBuffer bb)
public static int readInt16(ByteBuffer bb) throws IOException
//package com.java2s; //License from project: LGPL import java.io.IOException; import java.nio.ByteBuffer; public class Main { public static int readInt16(ByteBuffer bb) throws IOException { return bb.getShort(); }/*w ww . ja va 2 s.c om*/ }