public static void putInt(ByteBuffer buffer,int val,ByteOrder order){
  int offset=buffer.position();
  putInt(buffer,val,offset,order);
  buffer.position(offset + 4);
}

public static void putInt ( ByteBuffer buffer , int val , ByteOrder order ) { int offset = buffer . position ( ) ; putInt ( buffer , val , offset , order ) ; buffer . position ( offset + 4 ) ; }
writes an int at the current position in the given buffer , using the given byteorder
