public void writeFully(long pos,ByteBuffer src){
  int len=src.remaining();
  fileSize=Math.max(fileSize,pos + len);
  DataUtils.writeFully(file,pos,src);
  writeCount++;
  writeBytes+=len;
}

public void writeFully ( long pos , ByteBuffer src ) { int len = src . remaining ( ) ; fileSize = Math . max ( fileSize , pos + len ) ; DataUtils . writeFully ( file , pos , src ) ; writeCount ++ ; writeBytes += len ; }
write to the file .
