public static void putByte(ByteBuffer bb,short value){
  bb.put((byte)(value & 0xff));
}

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