public final void write(int c) throws IOException {
  if (bufferSize == 0) {
    writer.write(c);
  }
 else {
    if (nextChar >= bufferSize)     if (autoFlush)     flushBuffer();
 else     bufferOverflow();
    cb[nextChar++]=(char)c;
  }
}

public final void write ( int c ) throws IOException { if ( bufferSize == 0 ) { writer . write ( c ) ; } else { if ( nextChar >= bufferSize ) if ( autoFlush ) flushBuffer ( ) ; else bufferOverflow ( ) ; cb [ nextChar ++ ] = ( char ) c ; } }
write a single character .
