public static int readUShort(ByteBuffer buffer){
  short s=buffer.getShort();
  return s & 0xffff;
}

public static int readUShort ( ByteBuffer buffer ) { short s = buffer . getShort ( ) ; return s & 0xffff ; }
get one unsigned short as int type
