public static void putShort(ByteBuffer bb,int value){
  bb.putShort((short)(value & 0xffff));
}

public static void putShort ( ByteBuffer bb , int value ) { bb . putShort ( ( short ) ( value & 0xffff ) ) ; }
put a short into the byte buffer unsigned .
