private void sendBufferIfFull() throws IOException {
  if (buf.position() >= bufSize)   sendBuffer();
}

private void sendBufferIfFull ( ) throws IOException { if ( buf . position ( ) >= bufSize ) sendBuffer ( ) ; }
send local buffer if it full .
