public static int forward(ByteBuffer buffer,int count){
  int newPos=buffer.position() + count;
  buffer.position(newPos);
  return newPos;
}

public static int forward ( ByteBuffer buffer , int count ) { int newPos = buffer . position ( ) + count ; buffer . position ( newPos ) ; return newPos ; }
moves the position of the given buffer the given count from the current position .
